Restoring code removed by mistake.
This commit is contained in:
parent
dbee351543
commit
152dfaa293
|
@ -169,6 +169,7 @@ public class IdleTimeoutTest extends AbstractTest
|
||||||
QueuedThreadPool threadPool = new QueuedThreadPool();
|
QueuedThreadPool threadPool = new QueuedThreadPool();
|
||||||
threadPool.setName(threadPool.getName() + "-client");
|
threadPool.setName(threadPool.getName() + "-client");
|
||||||
clientFactory = newSPDYClientFactory(threadPool);
|
clientFactory = newSPDYClientFactory(threadPool);
|
||||||
|
clientFactory.start();
|
||||||
SPDYClient client = clientFactory.newSPDYClient(SPDY.V2);
|
SPDYClient client = clientFactory.newSPDYClient(SPDY.V2);
|
||||||
client.setIdleTimeout(idleTimeout);
|
client.setIdleTimeout(idleTimeout);
|
||||||
Session session = client.connect(address, null);
|
Session session = client.connect(address, null);
|
||||||
|
@ -194,6 +195,7 @@ public class IdleTimeoutTest extends AbstractTest
|
||||||
QueuedThreadPool threadPool = new QueuedThreadPool();
|
QueuedThreadPool threadPool = new QueuedThreadPool();
|
||||||
threadPool.setName(threadPool.getName() + "-client");
|
threadPool.setName(threadPool.getName() + "-client");
|
||||||
clientFactory = newSPDYClientFactory(threadPool);
|
clientFactory = newSPDYClientFactory(threadPool);
|
||||||
|
clientFactory.start();
|
||||||
SPDYClient client = clientFactory.newSPDYClient(SPDY.V2);
|
SPDYClient client = clientFactory.newSPDYClient(SPDY.V2);
|
||||||
client.setIdleTimeout(idleTimeout);
|
client.setIdleTimeout(idleTimeout);
|
||||||
Session session = client.connect(address, null);
|
Session session = client.connect(address, null);
|
||||||
|
@ -226,6 +228,7 @@ public class IdleTimeoutTest extends AbstractTest
|
||||||
QueuedThreadPool threadPool = new QueuedThreadPool();
|
QueuedThreadPool threadPool = new QueuedThreadPool();
|
||||||
threadPool.setName(threadPool.getName() + "-client");
|
threadPool.setName(threadPool.getName() + "-client");
|
||||||
clientFactory = newSPDYClientFactory(threadPool);
|
clientFactory = newSPDYClientFactory(threadPool);
|
||||||
|
clientFactory.start();
|
||||||
SPDYClient client = clientFactory.newSPDYClient(SPDY.V2);
|
SPDYClient client = clientFactory.newSPDYClient(SPDY.V2);
|
||||||
client.setIdleTimeout(idleTimeout);
|
client.setIdleTimeout(idleTimeout);
|
||||||
Session session = client.connect(address, null);
|
Session session = client.connect(address, null);
|
||||||
|
|
Loading…
Reference in New Issue