[Freeswitch-svn] [commit] r10974 - freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax

FreeSWITCH SVN gmaruzz at freeswitch.org
Sat Dec 27 13:39:13 PST 2008


Author: gmaruzz
Date: Sat Dec 27 16:39:13 2008
New Revision: 10974

Log:
skypiax: select on write fd_set on tcp_cli

Modified:
   freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c

Modified: freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c
==============================================================================
--- freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	(original)
+++ freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	Sat Dec 27 16:39:13 2008
@@ -349,15 +349,16 @@
 
       if (!running)
         break;
-      fdselect = 1;
+      fdselect = fd;
       FD_ZERO(&fs);
       FD_SET(fdselect, &fs);
-      to.tv_usec = 100000; //100ms
+      to.tv_usec = 50000; //50msec
       to.tv_sec = 0;
-      //FIXME rt = select(fdselect + 1, &fs, NULL, NULL, &to);
+
+      rt = select(fdselect + 1, NULL, &fs, NULL, &to);
 	  //switch_sleep(1000);//FIXME
 	  memset(cli_in, '\0', sizeof(cli_in));
-      rt = 1;
+      //rt = 1;
 	  if (rt > 0) {
 			  /*********************************************/
 		  if ((SAMPLERATE_SKYPIAX - 8000) == 0) {



More information about the Freeswitch-svn mailing list