org.mule.providers.tcp.issues
Class LingerExperimentMule2067TestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.mule.providers.tcp.issues.LingerExperimentMule2067TestCase
All Implemented Interfaces:
Test

public class LingerExperimentMule2067TestCase
extends TestCase

Are the "address already in use" errors coming from lingering sockets? We see "address already in use" errors when trying to re-use sockets very quickly, but the tests below don't give much information, except that: - data needs to be sent - explicitly setting or disabling the SO_LINGER value has little effect


Nested Class Summary
protected static class LingerExperimentMule2067TestCase.Server
           
 
Constructor Summary
LingerExperimentMule2067TestCase()
           
 
Method Summary
protected  void openCloseClientServer(int numberOfConnections, int port, int clientLinger, int serverLinger)
           
protected  void openCloseServer(int numberOfSockets, int port)
           
protected  void repeatOpenCloseClientServer(int numberOfRepeats, int numberOfConnections, int port, long pause)
           
protected  void repeatOpenCloseClientServer(int numberOfRepeats, int numberOfConnections, int port, long pause, int clientLinger)
           
protected  void repeatOpenCloseClientServer(int numberOfRepeats, int numberOfConnections, int port, long pause, int clientLinger, int serverLinger)
           
 void testHardClose()
           
 void testInoffensive()
           
 void testThisShowsTheProblem()
           
 void testWithClientLinger()
           
 void testWithServerLinger()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LingerExperimentMule2067TestCase

public LingerExperimentMule2067TestCase()
Method Detail

testInoffensive

public void testInoffensive()
                     throws IOException
Throws:
IOException

testThisShowsTheProblem

public void testThisShowsTheProblem()
                             throws IOException
Throws:
IOException

testWithClientLinger

public void testWithClientLinger()
                          throws IOException
Throws:
IOException

testWithServerLinger

public void testWithServerLinger()
                          throws IOException
Throws:
IOException

testHardClose

public void testHardClose()
                   throws IOException
Throws:
IOException

openCloseServer

protected void openCloseServer(int numberOfSockets,
                               int port)
                        throws IOException
Throws:
IOException

repeatOpenCloseClientServer

protected void repeatOpenCloseClientServer(int numberOfRepeats,
                                           int numberOfConnections,
                                           int port,
                                           long pause)
                                    throws IOException
Throws:
IOException

repeatOpenCloseClientServer

protected void repeatOpenCloseClientServer(int numberOfRepeats,
                                           int numberOfConnections,
                                           int port,
                                           long pause,
                                           int clientLinger)
                                    throws IOException
Throws:
IOException

repeatOpenCloseClientServer

protected void repeatOpenCloseClientServer(int numberOfRepeats,
                                           int numberOfConnections,
                                           int port,
                                           long pause,
                                           int clientLinger,
                                           int serverLinger)
                                    throws IOException
Throws:
IOException

openCloseClientServer

protected void openCloseClientServer(int numberOfConnections,
                                     int port,
                                     int clientLinger,
                                     int serverLinger)
                              throws IOException
Throws:
IOException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.