Changeset 23666 in vbox
- Timestamp:
- Oct 10, 2009 1:18:36 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/tcp.cpp
r23665 r23666 800 800 rtTcpErrorReset(); 801 801 ssize_t cbBytesRead = recv(Sock, (char *)pvBuffer + cbRead, cbToRead, MSG_NOSIGNAL); 802 if (cbBytesRead < 0) 803 return rtTcpError(); 804 if (cbBytesRead == 0 && rtTcpError()) 805 return rtTcpError(); 802 if (cbBytesRead <= 0) 803 { 804 int rc = rtTcpError(); 805 Assert(RT_FAILURE_NP(rc) || cbBytesRead == 0); 806 if (RT_FAILURE_NP(rc)) 807 return rc; 808 if (pcbRead) 809 { 810 *pcbRead = 0; 811 return VINF_SUCCESS; 812 } 813 return VERR_NET_SHUTDOWN; 814 } 806 815 if (pcbRead) 807 816 {
Note:
See TracChangeset
for help on using the changeset viewer.