neat
neat copied to clipboard
Issues when closing flows
I experience two issues when flows are closed:
- If the remote peer closes a connection,
on_close()
will be called becauserecv
returns 0, but the socket associated with the flow is never closed. - If the event loop is stopped via e.g. a signal handler, and
neat_free_ctx()
is called afterwards, all open sockets are closed, buton_close()
is not called for the respective flows. This results inuserData
associated with the flows not being freed.
I am pretty sure issue 1 is a bug, but I am not sure if issue 2 is a bug.