s4:libcli/wrepl: make use of tstream_bsd_fail_readv_first_error(false)
authorStefan Metzmacher <metze@samba.org>
Thu, 12 Jan 2023 09:43:21 +0000 (10:43 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 24 Oct 2023 09:36:38 +0000 (09:36 +0000)
commit0e83b5640398a92fb0bf063f902c53801eaec92f
tree69da80812ea71a0b6fff761beac550e2c41c69f6
parent391ef8ae7b2d394e65b8872dcca67984673e7574
s4:libcli/wrepl: make use of tstream_bsd_fail_readv_first_error(false)

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>
source4/libcli/wrepl/winsrepl.c