Commit
4909945ee8282417b88251609b7fbef2b6353686
by Pau Espin Pedrol
osmo_io: close() op in backend only takes care of closing
Move dependent steps such as unregister to be done at the common path, and leave the close() op on each backend to implement only the specific close operations.
Commit
df1ee8568b97dbf6d5268a83d1715a1c1fffb2de
by Pau Espin Pedrol
osmo_io: Track IOFD_FLAG_FD_REGISTERED in all backends
This will be used in common segmentation handling code to figure out whether the iofd is still registered or was unregistered by the user during the read cb, in order to know whether to continue submitting read events upwards or to discard the handling.
Commit
353638e2ff94b1ae4f46132b30edbacc99259852
by Pau Espin Pedrol
osmo_io: segmented_read: Avoid triggering read events if user unregisters
The user code doesn't expect to receive any more read cb events after unregistering the FD. Avoid keep calling the read cb if several entire messages were received at once in a single tcp chunk.