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>
close(sock_dup);
return tevent_req_post(req, ev);
}
+ /* as server we want to fail early */
+ tstream_bsd_fail_readv_first_error(state->plain, true);
if (transport == NCACN_NP) {
subreq = tstream_npa_accept_existing_send(
strerror(errno));
goto fail;
}
+ /* as server we want to fail early */
+ tstream_bsd_fail_readv_first_error(tstream, true);
}
sock = -1;