Ignore:
Timestamp:
Jul 10, 2006 9:37:53 PM (18 years ago)
Author:
bennylp
Message:

Fixed several bugs with TCP transport: (1) Handle crash in transaction, possibly because of transport error, (2) TCP accept() does not work correctly with IOCP because IOCP needs different buffer each time WSAAcceptEx() is called, (3) increase verbosity to warning on transport related errors in transaction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transaction.c

    r575 r600  
    15231523            err =pj_strerror(-sent, errmsg, sizeof(errmsg)); 
    15241524 
    1525             PJ_LOG(4,(tsx->obj_name,  
     1525            PJ_LOG(2,(tsx->obj_name,  
    15261526                      "Failed to send %s! err=%d (%s)", 
    15271527                      pjsip_tx_data_get_info(send_state->tdata), -sent, 
     
    15461546            char errmsg[PJ_ERR_MSG_SIZE]; 
    15471547 
    1548             PJ_LOG(4,(tsx->obj_name,  
     1548            PJ_LOG(2,(tsx->obj_name,  
    15491549                      "Temporary failure in sending %s, " 
    15501550                      "will try next server. Err=%d (%s)", 
     
    15721572        err = pj_strerror(-sent, errmsg, sizeof(errmsg)); 
    15731573 
    1574         PJ_LOG(4,(tsx->obj_name, "Transport failed to send %s! Err=%d (%s)", 
     1574        PJ_LOG(2,(tsx->obj_name, "Transport failed to send %s! Err=%d (%s)", 
    15751575                  pjsip_tx_data_get_info(tdata), -sent, errmsg)); 
    15761576 
     
    16191619            char errmsg[PJ_ERR_MSG_SIZE]; 
    16201620 
    1621             PJ_LOG(4,(tsx->obj_name,  
     1621            PJ_LOG(2,(tsx->obj_name,  
    16221622                      "Error sending %s: Err=%d (%s)", 
    16231623                      pjsip_tx_data_get_info(tdata), status,  
     
    16641664        err = pj_strerror(status, errmsg, sizeof(errmsg)); 
    16651665 
    1666         PJ_LOG(4,(tsx->obj_name,  
     1666        PJ_LOG(2,(tsx->obj_name,  
    16671667                  "Transport error, terminating transaction. " 
    16681668                  "Err=%d (%s)", 
     
    24152415 
    24162416        /* Start Timer D with TD/T4 timer if unreliable transport is used. */ 
    2417         if (PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport) == 0) { 
     2417        /* Note: tsx->transport may be NULL! */ 
     2418        if ((tsx->transport && PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport)==0) 
     2419            || ((tsx->transport_flag & PJSIP_TRANSPORT_RELIABLE) == 0))  
     2420        { 
    24182421            if (tsx->method.id == PJSIP_INVITE_METHOD) { 
    24192422                timeout = td_timer_val; 
Note: See TracChangeset for help on using the changeset viewer.