From 26a27f32ac0d829e0bdd98edb5e71f6c33c2ce58 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Wed, 22 Sep 2010 13:11:11 +0000 Subject: Fixed #1130 Since the problem may not be iOS4 specific, a general approach is adopted to fix the problem. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3316 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/config.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pjlib/include/pj/config.h') diff --git a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h index 0f47a1a0..6d5e17bc 100644 --- a/pjlib/include/pj/config.h +++ b/pjlib/include/pj/config.h @@ -506,6 +506,16 @@ # define PJ_MAX_HOSTNAME (128) #endif +/** + * Maximum consecutive identical error for accept() operation before + * activesock stops calling the next ioqueue accept. + * + * Default: 50 + */ +#ifndef PJ_ACTIVESOCK_MAX_CONSECUTIVE_ACCEPT_ERROR +# define PJ_ACTIVESOCK_MAX_CONSECUTIVE_ACCEPT_ERROR 50 +#endif + /** * Constants for declaring the maximum handles that can be supported by * a single IOQ framework. This constant might not be relevant to the -- cgit v1.2.3