mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-29 06:08:59 +08:00
bugfix: set the correct status if we still have pending data
This commit is contained in:
parent
2fc654ac35
commit
9e118c8a31
@ -3876,7 +3876,7 @@ unsigned int mg_poll_server(struct mg_server *server, int milliseconds) {
|
||||
if (conn->flags & CONN_LONG_RUNNING) {
|
||||
conn->mg_conn.wsbits = conn->flags & CONN_CLOSE ? 1 : 0;
|
||||
if (call_request_handler(conn) == MG_REQUEST_PROCESSED) {
|
||||
conn->flags |= CONN_CLOSE;
|
||||
conn->flags |= conn->remote_iobuf.len == 0 ? CONN_CLOSE : CONN_SPOOL_DONE;
|
||||
}
|
||||
}
|
||||
if (conn->flags & CONN_CLOSE || conn->last_activity_time < expire_time) {
|
||||
|
Loading…
Reference in New Issue
Block a user