I hereby claim:
- I am robertodauria on github.
- I am robertod (https://keybase.io/robertod) on keybase.
- I have a public key ASCrLosyUYpOkWfXxvCJXvaU7aoM8g18hZKLfvsWK9juzAo
To claim this, I am signing this object:
delete done | |
fatal error: concurrent map iteration and map write | |
try to delete 2409:252:91a0:cf00:305a:a702:ffc7:dd04 | |
delete done | |
goroutine 39 [running]: | |
runtime.throw(0x930c6c, 0x26) | |
/usr/local/go/src/runtime/panic.go:617 +0x72 fp=0xc0001eee08 sp=0xc0001eedd8 pc=0x42d6e2 | |
runtime.mapiternext(0xc0001eef48) | |
/usr/local/go/src/runtime/map.go:860 +0x597 fp=0xc0001eee90 sp=0xc0001eee08 pc=0x40ed97 |
diff --git a/libndt.hpp b/libndt.hpp | |
index baa203a..b4d8338 100644 | |
--- a/libndt.hpp | |
+++ b/libndt.hpp | |
@@ -1638,21 +1638,22 @@ bool Client::run_download() noexcept { | |
]() noexcept { | |
// TODO(bassosimone): allocate on heap and keep safe using unique_ptr | |
// because with musl libc the stack is 80KB by default. | |
- char buf[131072]; | |
+ constexpr size_t ndt_bufsize = 131072; |
I hereby claim:
To claim this, I am signing this object: