Changeset 4170 for pjproject


Ignore:
Timestamp:
Jun 19, 2012 7:40:19 AM (12 years ago)
Author:
bennylp
Message:

Fixed #1538: Suppress SIGPIPE for broken TCP connection on Linux (thanks Mike Evans for the suggestion)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/sock_bsd.c

    r3553 r4170  
    655655    PJ_ASSERT_RETURN(len, PJ_EINVAL); 
    656656 
     657#ifdef MSG_NOSIGNAL 
     658    /* Suppress SIGPIPE. See https://trac.pjsip.org/repos/ticket/1538 */ 
     659    flags |= MSG_NOSIGNAL; 
     660#endif 
     661 
    657662    *len = send(sock, (const char*)buf, *len, flags); 
    658663 
Note: See TracChangeset for help on using the changeset viewer.