summaryrefslogtreecommitdiffstats
path: root/voip
diff options
context:
space:
mode:
authorJohn Huang <jsh@google.com>2010-10-19 09:54:02 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-10-19 09:54:02 -0700
commit723e997ef9745ad05c2499509c21976a42f2f278 (patch)
tree03e07a447478edf4c444abbc7af3b8db719ec5a9 /voip
parentf186dafdfe60d77c526c4e087655e8b257bc45cd (diff)
parent3e9bcb98c4190b18d113e79ead071a86cd7ca480 (diff)
downloadframeworks_base-723e997ef9745ad05c2499509c21976a42f2f278.zip
frameworks_base-723e997ef9745ad05c2499509c21976a42f2f278.tar.gz
frameworks_base-723e997ef9745ad05c2499509c21976a42f2f278.tar.bz2
am 3e9bcb98: am 382717f3: Merge "Set the thread pool size of NIST sip stack to one." into gingerbread
Merge commit '3e9bcb98c4190b18d113e79ead071a86cd7ca480' * commit '3e9bcb98c4190b18d113e79ead071a86cd7ca480': Set the thread pool size of NIST sip stack to one.
Diffstat (limited to 'voip')
-rw-r--r--voip/java/com/android/server/sip/SipSessionGroup.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/voip/java/com/android/server/sip/SipSessionGroup.java b/voip/java/com/android/server/sip/SipSessionGroup.java
index d861fa5..578bd9b 100644
--- a/voip/java/com/android/server/sip/SipSessionGroup.java
+++ b/voip/java/com/android/server/sip/SipSessionGroup.java
@@ -82,6 +82,11 @@ class SipSessionGroup implements SipListener {
private static final boolean DEBUG = true;
private static final boolean DEBUG_PING = DEBUG && false;
private static final String ANONYMOUS = "anonymous";
+ // Limit the size of thread pool to 1 for the order issue when the phone is
+ // waken up from sleep and there are many packets to be processed in the SIP
+ // stack. Note: The default thread pool size in NIST SIP stack is -1 which is
+ // unlimited.
+ private static final String THREAD_POOL_SIZE = "1";
private static final int EXPIRY_TIME = 3600; // in seconds
private static final int CANCEL_CALL_TIMER = 3; // in seconds
private static final long WAKE_LOCK_HOLDING_TIME = 500; // in milliseconds
@@ -129,6 +134,7 @@ class SipSessionGroup implements SipListener {
SipFactory sipFactory = SipFactory.getInstance();
Properties properties = new Properties();
properties.setProperty("javax.sip.STACK_NAME", getStackName());
+ properties.setProperty("javax.sip.THREAD_POOL_SIZE", THREAD_POOL_SIZE);
String outboundProxy = myself.getProxyAddress();
if (!TextUtils.isEmpty(outboundProxy)) {
Log.v(TAG, "outboundProxy is " + outboundProxy);