rpcrt4: Wait for all of the requested bytes to be returned for tcp connections.
This commit is contained in:
parent
a2d2d4db63
commit
4fb6295528
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue