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>
return;
}
socket_set_flags(conn->socket, SOCKET_FLAG_NOCLOSE);
+ /* as server we want to fail early */
+ tstream_bsd_fail_readv_first_error(wrepl_conn->tstream, true);
wrepl_conn->conn = conn;
wrepl_conn->service = service;
return NT_STATUS_NO_MEMORY;
}
+ /* we're now a server and want to fail early */
+ tstream_bsd_fail_readv_first_error(wrepl_in->tstream, true);
+
/*
* The wrepl pdu's has the length as 4 byte (initial_read_size),
* packet_full_request_u32 provides the pdu length then.