- Timestamp:
- Sep 29, 2010 7:36:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/tcp.cpp
r32818 r32830 1020 1020 1021 1021 char abBitBucket[16*_1K]; 1022 size_t cbRead;1023 1022 #ifdef FIX_FOR_3_2 1024 ssize_t cb BytesRead = recv(hNative, &abBitBucket[0], sizeof(abBitBucket), MSG_NOSIGNAL);1025 if (cb BytesRead == 0)1023 ssize_t cbRead = recv(hNative, &abBitBucket[0], sizeof(abBitBucket), MSG_NOSIGNAL); 1024 if (cbRead == 0) 1026 1025 break; /* orderly shutdown in progress */ 1027 if (cb BytesRead < 0 && errno != EAGAIN)1026 if (cbRead < 0 && errno != EAGAIN) 1028 1027 break; /* some kind of error, never mind which... */ 1029 1028 #else 1029 size_t cbRead; 1030 1030 rc = RTSocketReadNB(Sock, &abBitBucket[0], sizeof(abBitBucket), &cbRead); 1031 1031 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.