VirtualBox

Changeset 14906 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Dec 2, 2008 2:46:07 PM (16 years ago)
Author:
vboxsync
Message:

NAT: properly handle ret==0 from recv()

File:
1 edited

Legend:

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

    r14794 r14906  
    162162                if (nn < 0 && (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK))
    163163                        return 0;
     164                else if (nn == 0)
     165                        return 0; /* Windows: this is no error, just handle this like EWOULDBLOCK. */
    164166                else {
    165167                        DEBUG_MISC((dfd, " --- soread() disconnected, nn = %d, errno = %d-%s\n", nn, errno,strerror(errno)));
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