Ignore:
Timestamp:
Mar 23, 2011 6:08:36 AM (11 years ago)
Author:
ming
Message:

Fixed #1221: Crash when SIP transport tried to write to a broken pipe.

File:
1 edited

Legend:

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

    r2394 r3478  
    12301230    pj_ioqueue_callback tls_callback; 
    12311231    int rc; 
     1232    pj_int32_t val = 1; 
    12321233    pj_status_t status; 
    12331234     
     
    13321333    tls->ka_timer.user_data = (void*) tls; 
    13331334    tls->ka_timer.cb = &tls_keep_alive_timer; 
     1335 
     1336    /* Prevent SIGPIPE */ 
     1337    pj_sock_setsockopt(tcp->sock, pj_SOL_SOCKET(), pj_SO_NOSIGPIPE(), 
     1338                       &val, sizeof(val)); 
    13341339 
    13351340 
Note: See TracChangeset for help on using the changeset viewer.