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

This commit is contained in:
Robert Shearman 2006-05-19 11:03:20 +01:00 committed by Alexandre Julliard
parent a2d2d4db63
commit 4fb6295528
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}