summaryrefslogtreecommitdiff
path: root/pjlib
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-06-01 15:32:10 +0000
committerBenny Prijono <bennylp@teluu.com>2010-06-01 15:32:10 +0000
commitccabaf62fd587c48c702db90265c776a893bab05 (patch)
tree450a36125796ca56828d0b426610a7f522ad4cf6 /pjlib
parent15b4b3cf34bffb91748fcafd0ebfe30a8de0330e (diff)
Fix #1091: Increase the default maximum number of outstanding asynchronous operations of Symbian socket server to 32
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3189 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r--pjlib/src/pj/os_core_symbian.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/pjlib/src/pj/os_core_symbian.cpp b/pjlib/src/pj/os_core_symbian.cpp
index 1419fbdc..3b963667 100644
--- a/pjlib/src/pj/os_core_symbian.cpp
+++ b/pjlib/src/pj/os_core_symbian.cpp
@@ -35,7 +35,14 @@
#define DUMMY_MUTEX ((pj_mutex_t*)101)
#define DUMMY_SEMAPHORE ((pj_sem_t*)102)
#define THIS_FILE "os_core_symbian.c"
-
+
+/* Default message slot number for RSocketServ::Connect().
+ * Increase it to 32 from the default 8 (KESockDefaultMessageSlots)
+ */
+#ifndef PJ_SYMBIAN_SOCK_MSG_SLOTS
+# define PJ_SYMBIAN_SOCK_MSG_SLOTS 32
+#endif
+
/*
* Note:
*
@@ -194,7 +201,7 @@ TInt PjSymbianOS::Initialize()
* in the parameters
*/
if (!isSocketServInitialized_ && appSocketServ_ == NULL) {
- err = socketServ_.Connect();
+ err = socketServ_.Connect(PJ_SYMBIAN_SOCK_MSG_SLOTS);
if (err != KErrNone)
goto on_error;