VirtualBox

Ignore:
Timestamp:
Nov 9, 2016 4:35:15 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111835
Message:

NAT: soread - Windows reports ESHUTDOWN after SHUT_RD (SD_RECEIVE)
instead of just returning EOF indication. Map that back to EOF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r64535 r64617  
    331331    if (nn <= 0)
    332332    {
     333#ifdef RT_OS_WINDOWS
     334        /*
     335         * Windows reports ESHUTDOWN after SHUT_RD (SD_RECEIVE)
     336         * instead of just returning EOF indication.
     337         */
     338        if (nn < 0 && sockerr == ESHUTDOWN)
     339        {
     340            nn = 0;
     341            sockerr = 0;
     342        }
     343#endif
     344
    333345        if (nn == 0) /* XXX: should this be inside #if defined(RT_OS_WINDOWS)? */
    334346        {
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