VirtualBox

Changeset 32830 in vbox for trunk


Ignore:
Timestamp:
Sep 29, 2010 7:36:36 PM (14 years ago)
Author:
vboxsync
Message:

tcp.cpp: Make the outlined fix for rtTcpClose work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/tcp.cpp

    r32818 r32830  
    10201020
    10211021                char abBitBucket[16*_1K];
    1022                 size_t cbRead;
    10231022#ifdef FIX_FOR_3_2
    1024                 ssize_t cbBytesRead = recv(hNative, &abBitBucket[0], sizeof(abBitBucket), MSG_NOSIGNAL);
    1025                 if (cbBytesRead == 0)
     1023                ssize_t cbRead = recv(hNative, &abBitBucket[0], sizeof(abBitBucket), MSG_NOSIGNAL);
     1024                if (cbRead == 0)
    10261025                    break; /* orderly shutdown in progress */
    1027                 if (cbBytesRead < 0 && errno != EAGAIN)
     1026                if (cbRead < 0 && errno != EAGAIN)
    10281027                    break; /* some kind of error, never mind which... */
    10291028#else
     1029                size_t cbRead;
    10301030                rc = RTSocketReadNB(Sock, &abBitBucket[0], sizeof(abBitBucket), &cbRead);
    10311031                if (RT_FAILURE(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette