mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-15 10:29:47 +00:00
Adding zero-length chunk for long-running requests
This commit is contained in:
1 parent
3cec6f6745
commit
29f4703e4f
1 file changed
+3
@@ -4931,6 +4931,9 @@ static void mg_ev_handler(struct ns_connection *nc, enum ns_event ev, void *p) {
|
||||
|
||||
case NS_POLL:
|
||||
if (call_user(conn, MG_POLL) == MG_TRUE) {
|
||||
if (conn->ns_conn->flags & MG_HEADERS_SENT) {
|
||||
write_terminating_chunk(conn);
|
||||
}
|
||||
close_local_endpoint(conn);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user