skypiax: lower load by bigger TCP buffer

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15635 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Giovanni Maruzzelli 2009-11-23 22:22:15 +00:00
parent 6e1c86a8d8
commit 67464ea79e
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ unsigned short start_port = 6001;
sockbufsize=SAMPLES_PER_FRAME * 8; sockbufsize=SAMPLES_PER_FRAME * 8 * 3;
size = sizeof(int); size = sizeof(int);
setsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&sockbufsize, size); setsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&sockbufsize, size);
@ -98,7 +98,7 @@ unsigned short start_port = 6001;
getsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&sockbufsize, &size); getsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&sockbufsize, &size);
DEBUGA_SKYPE("2 SO_RCVBUF is %d, size is %d\n", SKYPIAX_P_LOG, sockbufsize, size); DEBUGA_SKYPE("2 SO_RCVBUF is %d, size is %d\n", SKYPIAX_P_LOG, sockbufsize, size);
sockbufsize=SAMPLES_PER_FRAME * 8; sockbufsize=SAMPLES_PER_FRAME * 8 * 3;
size = sizeof(int); size = sizeof(int);
setsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&sockbufsize, size); setsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&sockbufsize, size);