summaryrefslogtreecommitdiffstats
path: root/src/dht.c
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-02-19 01:44:13 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-02-19 01:44:13 +0100
commit5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b (patch)
treeb549de68b6691f0fc1b27b4417f0f5c1697239d2 /src/dht.c
parentstore output in heap instead of on stack, which is too small for big torrents (diff)
downloadtravnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar
travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar.gz
travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar.bz2
travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar.lz
travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar.xz
travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar.zst
travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.zip
Diffstat (limited to 'src/dht.c')
-rw-r--r--src/dht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dht.c b/src/dht.c
index 4e57e5e..d97b80b 100644
--- a/src/dht.c
+++ b/src/dht.c
@@ -794,7 +794,7 @@ struct dht * dht_init (const struct bencoding * c) {
#pragma GCC diagnostic pop
goto e;
}
-#define TOOMUCH 32727
+#define TOOMUCH (32727*1)
unsigned pinged = 0;
if (c) {
const struct bencoding * id = bpath(c, "id");