VirtualBox

Changeset 99811 in vbox


Ignore:
Timestamp:
May 16, 2023 9:12:53 AM (20 months ago)
Author:
vboxsync
Message:

NAT/lwIP: ticketref:21560 Adjust UDP proxy timeout from 18-21 to 21-24 range to respect intended 20 second timeout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/udp.c

    r50007 r99811  
    691691    struct udp_pcb *xpcb;
    692692
    693     if (++pcb->proxy_cnt < limit) {
     693    /*
     694     * Although a strict inequality '<' seems appropriate here (20 < 3 * 7),
     695     * the fact that UDP proxy timer is shared by all UDP proxies may cause
     696     * the first timer interval to expire anywhere between 0 to 3 seconds,
     697     * which results in UDP proxy timeout being in 18 to 21 second range. By
     698     * using '<=' we shift it to 21-24 second range. See @ticketref{21560}.
     699     */
     700    if (++pcb->proxy_cnt <= limit) {
    694701      pprev = &pcb->next;
    695702      pcb = pcb->next;
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