VirtualBox

Changeset 64679 in vbox


Ignore:
Timestamp:
Nov 15, 2016 11:51:15 PM (8 years ago)
Author:
vboxsync
Message:

NAT: slirp_select_poll - don't stop after draining half-closed socket,
we still need to check it for POLLOUT.

This whole block could use some refactoring to clarify repeated
conditions and spooky action at a distance, but this fix is intended
to have minimal diff.

File:
1 edited

Legend:

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

    r63562 r64679  
    11281128
    11291129            /* if socket freed ''so'' is PHANTOM and next socket isn't points on it */
    1130             if (so_next->so_prev == so)
     1130            if (so_next->so_prev != so)
     1131            {
     1132                CONTINUE(tcp);
     1133            }
     1134            else
    11311135            {
    11321136                /* mark the socket for termination _after_ it was drained */
     
    11391143#endif
    11401144            }
    1141             if (so_next->so_prev == so)
    1142                 so->fUnderPolling = 0;
    1143             CONTINUE(tcp);
    11441145        }
    11451146
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