rpcrt4: Set the socket back to blocking in rpcrt4_conn_tcp_handoff as
the read and write function for the protseq assume that syscalls will block.
This commit is contained in:
parent
e2e05d0493
commit
828c733f72
|
@ -684,6 +684,8 @@ static RPC_STATUS rpcrt4_conn_tcp_handoff(RpcConnection *old_conn, RpcConnection
|
|||
ERR("Failed to accept a TCP connection: error %d\n", ret);
|
||||
return RPC_S_SERVER_UNAVAILABLE;
|
||||
}
|
||||
/* reset to blocking behaviour */
|
||||
fcntl(ret, F_SETFL, 0);
|
||||
client->sock = ret;
|
||||
TRACE("Accepted a new TCP connection\n");
|
||||
return RPC_S_OK;
|
||||
|
|
Loading…
Reference in New Issue