From 3ce2d14b9cdaa010eadce0daea9142ef8494c2dd Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 8 Nov 2025 22:58:49 +0100 Subject: [PATCH] Don't tarpit connections that were activated Activated connections that time out for some reason should have their sockets closed immediately. --- src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.c b/src/net.c index 37ae1166..0f6b9f4e 100644 --- a/src/net.c +++ b/src/net.c @@ -401,7 +401,7 @@ static void check_network_activity(fd_set *readset, fd_set *writeset) { if(FD_ISSET(c->socket, readset)) { if(!receive_meta(c)) { - c->status.tarpit = true; + c->status.tarpit = !c->status.active; terminate_connection(c, c->status.active); continue; } -- 2.47.3