Changeset 1548


Ignore:
Timestamp:
Nov 4, 2007 3:55:17 AM (16 years ago)
Author:
bennylp
Message:

Continue doing ICE/STUN keep-alive if the request failed because of timeout (PJNATH_ESTUNTIMEDOUT)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/ice_strans.c

    r1503 r1548  
    11281128    comp->pending_cnt--; 
    11291129 
    1130     if (status != PJ_SUCCESS) { 
     1130    if (status == PJNATH_ESTUNTIMEDOUT) { 
     1131 
     1132        PJ_LOG(4,(comp->ice_st->obj_name,  
     1133                  "STUN Binding request has timed-out, will retry " 
     1134                  "again alter")); 
     1135 
     1136        /* Restart keep-alive timer */ 
     1137        start_ka_timer(comp->ice_st); 
     1138        return; 
     1139 
     1140    } else if (status != PJ_SUCCESS) { 
    11311141        comp->last_status = cand->status = status; 
    11321142        ice_st_perror(comp->ice_st, "STUN Binding request failed",  
     
    11651175    } 
    11661176 
    1167     PJ_LOG(4,(comp->ice_st->obj_name,  
     1177    PJ_LOG(5,(comp->ice_st->obj_name,  
    11681178              "STUN mapped address for %s:%d is %s:%d", 
    11691179              ip, (int)pj_ntohs(comp->local_addr.ipv4.sin_port), 
Note: See TracChangeset for help on using the changeset viewer.