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.c

    r3148 r3478  
    528528    struct tls_transport *tls; 
    529529    const pj_str_t ka_pkt = PJSIP_TLS_KEEP_ALIVE_DATA; 
     530    pj_int32_t val = 1; 
    530531    pj_status_t status; 
    531532     
     
    617618    pj_strdup(tls->base.pool, &tls->ka_pkt, &ka_pkt); 
    618619 
     620    /* Prevent SIGPIPE */ 
     621    pj_sock_setsockopt(tcp->sock, pj_SOL_SOCKET(), pj_SO_NOSIGPIPE(), 
     622                       &val, sizeof(val)); 
     623     
    619624    /* Done setting up basic transport. */ 
    620625    *p_tls = tls; 
Note: See TracChangeset for help on using the changeset viewer.