Commit 4fb62955 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

rpcrt4: Wait for all of the requested bytes to be returned for tcp connections.

parent a2d2d4db
......@@ -353,7 +353,7 @@ static int rpcrt4_conn_tcp_read(RpcConnection *Connection,
void *buffer, unsigned int count)
{
RpcConnection_tcp *tcpc = (RpcConnection_tcp *) Connection;
int r = read(tcpc->sock, buffer, count);
int r = recv(tcpc->sock, buffer, count, MSG_WAITALL);
TRACE("%d %p %u -> %d\n", tcpc->sock, buffer, count, r);
return r;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment