Commit 9a27210a authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Set next state to STP_DONE also when an overflow error is encountered

while parsing the HTTP request.

Patch by: mark
parent 8306db9a
...@@ -115,11 +115,9 @@ cnt_wait(struct sess *sp) ...@@ -115,11 +115,9 @@ cnt_wait(struct sess *sp)
sp->step = STP_START; sp->step = STP_START;
return (0); return (0);
} }
if (i == -2) { if (i == -2)
vca_close_session(sp, "overflow"); vca_close_session(sp, "overflow");
return (0); else if (i == -1 && Tlen(sp->htc->rxbuf) == 0 &&
}
if (i == -1 && Tlen(sp->htc->rxbuf) == 0 &&
(errno == 0 || errno == ECONNRESET)) (errno == 0 || errno == ECONNRESET))
vca_close_session(sp, "EOF"); vca_close_session(sp, "EOF");
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment