[asterisk-scf-commits] asterisk-scf/integration/pjproject.git branch "increase_max_handles" created.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Aug 21 15:30:52 CDT 2012


branch "increase_max_handles" has been created
        at  4aa10476543f594919fb07b063655a5ecacd6448 (commit)

- Log -----------------------------------------------------------------
commit 4aa10476543f594919fb07b063655a5ecacd6448
Author: Brent Eagles <beagles at digium.com>
Date:   Tue Aug 21 17:53:21 2012 -0230

    Enable larger sets of IO handles.

diff --git a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h
index d6dbad6..86a8f74 100644
--- a/pjlib/include/pj/config.h
+++ b/pjlib/include/pj/config.h
@@ -618,10 +618,12 @@
     /* When FD_SETSIZE is not changeable, check if PJ_IOQUEUE_MAX_HANDLES
      * is lower than FD_SETSIZE value.
      */
-#   ifdef FD_SETSIZE
-#	if PJ_IOQUEUE_MAX_HANDLES > FD_SETSIZE
-#	    error "PJ_IOQUEUE_MAX_HANDLES is greater than FD_SETSIZE"
-#	endif
+#   ifndef ASTSCF_PJ_EPOLL 
+#       ifdef FD_SETSIZE 
+#	    if PJ_IOQUEUE_MAX_HANDLES > FD_SETSIZE
+#	        error "PJ_IOQUEUE_MAX_HANDLES is greater than FD_SETSIZE"
+#	    endif
+#       endif
 #   endif
 #endif
 

commit a43524ef0a73a7cab418218115836e8992580140
Author: Brent Eagles <beagles at digium.com>
Date:   Tue Jul 24 16:53:49 2012 -0230

    Set max handles to a more reasonable "modern limit" to get over
    some restrictions in pjsip

diff --git a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h
index 4ed9d3f..d6dbad6 100644
--- a/pjlib/include/pj/config.h
+++ b/pjlib/include/pj/config.h
@@ -524,7 +524,7 @@
  * the underlying implementation changes.
  */
 #ifndef PJ_IOQUEUE_MAX_HANDLES
-#   define PJ_IOQUEUE_MAX_HANDLES	(64)
+#   define PJ_IOQUEUE_MAX_HANDLES	(1024)
 #endif
 
 

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/pjproject.git



More information about the asterisk-scf-commits mailing list