Ignore:
Timestamp:
Mar 23, 2011 10:23:31 AM (13 years ago)
Author:
ming
Message:

Re #1221: Move setting the socket option to pjlib level (sock_bsd) instead of in the SIP transport.

File:
1 edited

Legend:

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

    r3478 r3480  
    550550        return PJ_RETURN_OS_ERROR(pj_get_native_netos_error()); 
    551551    else { 
     552        pj_int32_t val = 1; 
     553        if (type == pj_SOCK_STREAM()) { 
     554            pj_sock_setsockopt(sock, pj_SOL_SOCKET(), pj_SO_NOSIGPIPE(), 
     555                               &val, sizeof(val)); 
     556        } 
    552557#if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 
    553558    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0 
    554         pj_int32_t val = 1; 
    555559        if (type == pj_SOCK_DGRAM()) { 
    556560            pj_sock_setsockopt(*sock, pj_SOL_SOCKET(), SO_NOSIGPIPE,  
Note: See TracChangeset for help on using the changeset viewer.