mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
Calling EP_CLIENT on close
This commit is contained in:
1 parent
e41df3cf9c
commit
f521999ea6
1 file changed
+1
-1
+1
-1
@@ -4752,7 +4752,7 @@ static void mg_ev_handler(struct ns_connection *nc, enum ns_event ev, void *p) {
|
|||||||
DBG(("%p %d closing", conn, conn->endpoint_type));
|
DBG(("%p %d closing", conn, conn->endpoint_type));
|
||||||
|
|
||||||
if (conn->endpoint_type == EP_CLIENT && nc->recv_iobuf.len > 0) {
|
if (conn->endpoint_type == EP_CLIENT && nc->recv_iobuf.len > 0) {
|
||||||
// call_http_client_handler(conn);
|
call_http_client_handler(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
call_user(conn, MG_CLOSE);
|
call_user(conn, MG_CLOSE);
|
||||||
|
|||||||
Reference in new issue
Block a user