Ignore:
Timestamp:
Nov 7, 2010, 9:33:01 PM (11 years ago)
Author:
charles
Message:

(trunk libT) #3727 "Fix NAT-PMP race between renewal and expiry" -- committed patch from bodgit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/natpmp.c

    r10945 r11391  
    213213            nat->state = TR_NATPMP_IDLE;
    214214            nat->is_mapped = TRUE;
    215             nat->renew_time = tr_time( ) + LIFETIME_SECS;
     215            nat->renew_time = tr_time( ) + ( resp.pnu.newportmapping.lifetime / 2 );
    216216            nat->private_port = resp.pnu.newportmapping.privateport;
    217217            nat->public_port = resp.pnu.newportmapping.mappedpublicport;
Note: See TracChangeset for help on using the changeset viewer.