From: <obo...@us...> - 2007-02-08 15:33:28
|
Revision: 162 http://svn.sourceforge.net/sipp/?rev=162&view=rev Author: oboulkroune Date: 2007-02-08 07:33:16 -0800 (Thu, 08 Feb 2007) Log Message: ----------- Enh: remote control: increase the allowed number of control sockets. 3pcc extended: clean the reach of the allowed number of local twin sockets Modified Paths: -------------- sipp/trunk/sipp.cpp sipp/trunk/sipp.hpp Modified: sipp/trunk/sipp.cpp =================================================================== --- sipp/trunk/sipp.cpp 2007-02-07 15:26:11 UTC (rev 161) +++ sipp/trunk/sipp.cpp 2007-02-08 15:33:16 UTC (rev 162) @@ -1512,9 +1512,9 @@ port = DEFAULT_CTRL_SOCKET_PORT; try_counter = 0; - /* Allow 10 control socket on the same system */ + /* Allow 60 control sockets on the same system */ /* (several SIPp instances) */ - while (try_counter < 10) { + while (try_counter < 60) { prt = htons(port); memset(&sin,0,sizeof(struct sockaddr_in)); soc = socket(AF_INET,SOCK_DGRAM,0); @@ -1528,10 +1528,10 @@ try_counter++; port++; } - if (try_counter == 10) { + if (try_counter == 60) { WARNING_P3("Unable to bind remote control socket (tried UDP ports %d-%d)", DEFAULT_CTRL_SOCKET_PORT, - DEFAULT_CTRL_SOCKET_PORT+10, + DEFAULT_CTRL_SOCKET_PORT+60, strerror(errno)); return; } @@ -2383,7 +2383,7 @@ /*3pcc extended mode: open a local socket which will be used for reading the infos sent by this remote twin sipp instance (slave or master) */ - + if(local_nb == MAX_LOCAL_TWIN_SOCKETS) ERROR("Max number of twin instances reached\n"); int localSocket = accept(s, (sockaddr *)(void *)&twinSipp_sockaddr, &len); Modified: sipp/trunk/sipp.hpp =================================================================== --- sipp/trunk/sipp.hpp 2007-02-07 15:26:11 UTC (rev 161) +++ sipp/trunk/sipp.hpp 2007-02-08 15:33:16 UTC (rev 162) @@ -92,7 +92,7 @@ /************************** Constants **************************/ -#define SIPP_VERSION 20070201 +#define SIPP_VERSION 20070208 #define T_UDP 0 #define T_TCP 1 #ifdef _USE_OPENSSL This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |