- Timestamp:
- Jan 14, 2010 9:05:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transport_udp.c
r2519 r3060 51 51 * More experiments are needed probably. 52 52 */ 53 /* 2010/01/14 54 * Too many people complained about seeing "Error setting SNDBUF" log, 55 * so lets just remove this. People who want to have SNDBUF set can 56 * still do so by declaring these two macros in config_site.h 57 */ 53 58 #ifndef PJSIP_UDP_SO_SNDBUF_SIZE 54 # define PJSIP_UDP_SO_SNDBUF_SIZE (24*1024*1024) 59 /*# define PJSIP_UDP_SO_SNDBUF_SIZE (24*1024*1024)*/ 60 # define PJSIP_UDP_SO_SNDBUF_SIZE 0 55 61 #endif 56 62 57 63 #ifndef PJSIP_UDP_SO_RCVBUF_SIZE 58 # define PJSIP_UDP_SO_RCVBUF_SIZE (24*1024*1024) 64 /*# define PJSIP_UDP_SO_RCVBUF_SIZE (24*1024*1024)*/ 65 # define PJSIP_UDP_SO_RCVBUF_SIZE 0 59 66 #endif 60 67 … … 551 558 const pjsip_host_port *a_name) 552 559 { 560 #if PJSIP_UDP_SO_RCVBUF_SIZE || PJSIP_UDP_SO_SNDBUF_SIZE 553 561 long sobuf_size; 554 562 pj_status_t status; 563 #endif 555 564 556 565 /* Adjust socket rcvbuf size */ 566 #if PJSIP_UDP_SO_RCVBUF_SIZE 557 567 sobuf_size = PJSIP_UDP_SO_RCVBUF_SIZE; 558 568 status = pj_sock_setsockopt(sock, pj_SOL_SOCKET(), pj_SO_RCVBUF(), … … 564 574 status)); 565 575 } 576 #endif 566 577 567 578 /* Adjust socket sndbuf size */ 579 #if PJSIP_UDP_SO_SNDBUF_SIZE 568 580 sobuf_size = PJSIP_UDP_SO_SNDBUF_SIZE; 569 581 status = pj_sock_setsockopt(sock, pj_SOL_SOCKET(), pj_SO_SNDBUF(), … … 575 587 status)); 576 588 } 589 #endif 577 590 578 591 /* Set the socket. */
Note: See TracChangeset
for help on using the changeset viewer.