[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
personal/stbuehler/mod-csrf-old
Glenn Strauss 6 years ago
parent 666b9fd726
commit 7e2090b96b
  1. 3
      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:
/*

Loading…
Cancel
Save