Changeset 1552


Ignore:
Timestamp:
Nov 5, 2007 11:30:40 PM (12 years ago)
Author:
bennylp
Message:

SIP TCP and TLS transports may call send completion callback with bytes_set=0 when send operation fails because outgoing connection is cancelled (for example, application quits). This will trigger assertion error in transaction because transaction only expects positive or negative bytes_set number, but not zero

File:
1 edited

Legend:

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

    r1476 r1552  
    18231823         * Notify sip_transport.c that packet has been sent. 
    18241824         */ 
     1825        if (bytes_sent == 0) 
     1826            bytes_sent = -PJ_RETURN_OS_ERROR(OSERR_ENOTCONN); 
     1827 
    18251828        tdata_op_key->callback(&tls->base, tdata_op_key->token, bytes_sent); 
    18261829    } 
Note: See TracChangeset for help on using the changeset viewer.