socket: don't make hup_in imply hup_out
Currently, after hup_in we wait for the output buffer queue to be
drained and then call hangup_output(). Don't enforce this policy
in the socket, but let the caller call socket_shutdown() in case
they get SOCKET_E_EOF, if they want that behavior.
@@ -641,8 +641,6 @@ static int socket_dispatch_write(Socket *socket) {
socket_hangup_output(socket);
}
- if (_c_unlikely_(socket->hup_in))
- socket_hangup_output(socket);
return SOCKET_E_LOST_INTEREST;
}
