VirtualBox

Changeset 60902 in vbox for trunk


Ignore:
Timestamp:
May 9, 2016 5:41:21 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107116
Message:

Runtime/RTSocketReadNB: Set *pcbRead to 0 if the socket is in non blocking mode and if there is no data available on Windows just like on POSIX compatible hosts to stay consistent

File:
1 edited

Legend:

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

    r60756 r60902  
    12701270
    12711271    if (rc == VERR_TRY_AGAIN)
     1272    {
     1273        *pcbRead = 0;
    12721274        rc = VINF_TRY_AGAIN;
     1275    }
    12731276#else
    12741277    ssize_t cbRead = recv(pThis->hNative, pvBuffer, cbNow, MSG_NOSIGNAL);
Note: See TracChangeset for help on using the changeset viewer.

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