Changeset 1551


Ignore:
Timestamp:
Nov 5, 2007 11:25:37 PM (17 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_tcp.c

    r1519 r1551  
    10791079         * Notify sip_transport.c that packet has been sent. 
    10801080         */ 
     1081        if (bytes_sent == 0) 
     1082            bytes_sent = -PJ_RETURN_OS_ERROR(OSERR_ENOTCONN); 
     1083 
    10811084        tdata_op_key->callback(&tcp->base, tdata_op_key->token, bytes_sent); 
    10821085 
Note: See TracChangeset for help on using the changeset viewer.