As a client we want recv pending responses even if the server
already closed the connection.
While tstream_bsd_fail_readv_first_error(false) is the default for
tstream_bsd, the wins replication protocol is special as it has
a way to switch server and client roles on an existing tcp connection.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
}
wrepl_socket->stream = talloc_move(wrepl_socket, stream);
+ /* as client we want to drain the recv queue on error */
+ tstream_bsd_fail_readv_first_error(wrepl_socket->stream, false);
return NT_STATUS_OK;
}