From 4b1372eae2dba25f92de84a497983961d1d46b70 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 25 Nov 2026 08:26:49 +0400 Subject: pica-node: fix new connection issue introduced in 6baf0cc --- PICA_node.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'PICA_node.c') diff --git a/PICA_node.c b/PICA_node.c index ab7da94..419cb29 100644 --- a/PICA_node.c +++ b/PICA_node.c @@ -2132,6 +2132,11 @@ ret: ncs[*pos].sck = -1; ncs[*pos].pos = 0; ncs[*pos].tmst = time(0); + //a slot handed over by newconn_free() still carries the type of its + //previous connection, which the request handlers would take for a second + //request on this one + ncs[*pos].type = NEWCONN_UNKNOWN; + ncs[*pos].iconn.cl = NULL; return &ncs[(*pos)++]; } -- cgit v1.2.1