Changeset 3480
- Timestamp:
- Mar 23, 2011 10:23:31 AM (14 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/sock_bsd.c
r3478 r3480 550 550 return PJ_RETURN_OS_ERROR(pj_get_native_netos_error()); 551 551 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 } 552 557 #if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 553 558 PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0 554 pj_int32_t val = 1;555 559 if (type == pj_SOCK_DGRAM()) { 556 560 pj_sock_setsockopt(*sock, pj_SOL_SOCKET(), SO_NOSIGPIPE, -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c
r3478 r3480 545 545 pj_activesock_cb tcp_callback; 546 546 const pj_str_t ka_pkt = PJSIP_TCP_KEEP_ALIVE_DATA; 547 pj_int32_t val = 1;548 547 pj_status_t status; 549 548 … … 633 632 pj_ioqueue_op_key_init(&tcp->ka_op_key.key, sizeof(pj_ioqueue_op_key_t)); 634 633 pj_strdup(tcp->base.pool, &tcp->ka_pkt, &ka_pkt); 635 636 /* Prevent SIGPIPE */637 pj_sock_setsockopt(tcp->sock, pj_SOL_SOCKET(), pj_SO_NOSIGPIPE(),638 &val, sizeof(val));639 634 640 635 /* Done setting up basic transport. */ -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tls.c
r3479 r3480 528 528 struct tls_transport *tls; 529 529 const pj_str_t ka_pkt = PJSIP_TLS_KEEP_ALIVE_DATA; 530 pj_int32_t val = 1;531 530 pj_status_t status; 532 531 … … 617 616 pj_ioqueue_op_key_init(&tls->ka_op_key.key, sizeof(pj_ioqueue_op_key_t)); 618 617 pj_strdup(tls->base.pool, &tls->ka_pkt, &ka_pkt); 619 620 /* Prevent SIGPIPE */621 pj_sock_setsockopt(tls->sock, pj_SOL_SOCKET(), pj_SO_NOSIGPIPE(),622 &val, sizeof(val));623 618 624 619 /* Done setting up basic transport. */ -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tls_ossl.c
r3479 r3480 1230 1230 pj_ioqueue_callback tls_callback; 1231 1231 int rc; 1232 pj_int32_t val = 1;1233 1232 pj_status_t status; 1234 1233 … … 1333 1332 tls->ka_timer.user_data = (void*) tls; 1334 1333 tls->ka_timer.cb = &tls_keep_alive_timer; 1335 1336 /* Prevent SIGPIPE */1337 pj_sock_setsockopt(tls->sock, pj_SOL_SOCKET(), pj_SO_NOSIGPIPE(),1338 &val, sizeof(val));1339 1334 1340 1335
Note: See TracChangeset
for help on using the changeset viewer.