mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
s4:service_named_pipe: make use of tstream_bsd_fail_readv_first_error(true)
This avoids doing useless work in case the client connection is already broken. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
8e8f2fa9c7
commit
27b2ca7d8d
@ -66,6 +66,8 @@ static void named_pipe_accept(struct stream_connection *conn)
|
||||
"named_pipe_accept: out of memory");
|
||||
return;
|
||||
}
|
||||
/* as server we want to fail early */
|
||||
tstream_bsd_fail_readv_first_error(plain_tstream, true);
|
||||
|
||||
subreq = tstream_npa_accept_existing_send(conn, conn->event.ctx,
|
||||
plain_tstream,
|
||||
|
Loading…
x
Reference in New Issue
Block a user