From 7e2090b96bcfc001e18d2e49517bc73043e9bb20 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sun, 7 Aug 2016 07:35:47 -0400 Subject: [PATCH] [core] do not enter handler twice after read body do not enter handler a second time in connection_state_machine() after read body completes if dynamic handler is still waiting for event and CON_STATE_READ_POST transitioned to CON_STATE_HANDLE_REQUEST --- src/connections.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/connections.c b/src/connections.c index d933551f..dfc4d37b 100644 --- a/src/connections.c +++ b/src/connections.c @@ -1260,6 +1260,9 @@ int connection_state_machine(server *srv, connection *con) { break; } + if (con->state == CON_STATE_HANDLE_REQUEST && ostate == CON_STATE_READ_POST) { + ostate = CON_STATE_HANDLE_REQUEST; + } break; case CON_STATE_RESPONSE_START: /*