test.unit.gov.nist.javax.sip.stack
Class TcpMultiThreadDeadlockTest

java.lang.Object
  extended by TestCase
      extended by test.unit.gov.nist.javax.sip.stack.TcpMultiThreadDeadlockTest

public class TcpMultiThreadDeadlockTest
extends TestCase

Testing for deadlock under massive load on the same call. This testcase reproduces deadlock that occurs most frequently with TCP thread pool size set to 1 from this issue https://jain-sip.dev.java.net/issues/show_bug.cgi?id=301 Other related issue is here http://code.google.com/p/mobicents/issues/detail?id=1810 The test sends couple of thousands 180 Ringing responses in order to stall the UAC thread. The issue is more easily reproducible without debug logs - 300 vs 1000 messages on average

Author:
vralev

Nested Class Summary
 class TcpMultiThreadDeadlockTest.Shootist
           
 class TcpMultiThreadDeadlockTest.Shootme
           
 
Constructor Summary
TcpMultiThreadDeadlockTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testStressMessageSerialization()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpMultiThreadDeadlockTest

public TcpMultiThreadDeadlockTest()
Method Detail

setUp

public void setUp()

tearDown

public void tearDown()

testStressMessageSerialization

public void testStressMessageSerialization()


Copyright © 2012. All Rights Reserved.