Closed NightBlues closed 4 years ago
When client closes tcp connection its left in CLOSE_WAIT state. https://github.com/mirage/ocaml-cohttp/blob/master/cohttp-lwt/src/server.ml#L141 Because io_handler only stops when send_frames stops too. So conn_closed in cohttp-lwt is not called.
CLOSE_WAIT
io_handler
send_frames
conn_closed
When client closes tcp connection its left in
CLOSE_WAIT
state. https://github.com/mirage/ocaml-cohttp/blob/master/cohttp-lwt/src/server.ml#L141 Becauseio_handler
only stops whensend_frames
stops too. Soconn_closed
in cohttp-lwt is not called.