HttpRequest request = new BasicHttpRequest("GET", "/");
HttpContext context = new BasicHttpContext();
this.clientParams.setParameter(CoreConnectionPNames.SO_TIMEOUT, 2000);
this.executor.execute(
new BasicAsyncRequestProducer(target, request),
new BasicAsyncResponseConsumer(),
this.connpool, context, callback);
Socket accepted = serverSocket.accept();
try {
Assert.assertTrue(latch.await(10, TimeUnit.SECONDS));
} finally {