Skip to content

Drain all data from the fd if we are disconnecting anyway

Peter Hutterer requested to merge whot/libei:wip/drain-on-disconnect into master

If we get EPROTO or EINVAL on the connection, all we do is disconnect (ourselves or the client). So let's drain the fd so there's no other data to be parsed by accident and then continue with actually disconnecting.

Merge request reports

Loading