public void initClient() throws Exception {
this.ioreactor = new DefaultConnectingIOReactor();
AsyncSchemeRegistry schemeRegistry = new AsyncSchemeRegistry();
schemeRegistry.register(new AsyncScheme("http", 80, null));
this.connMgr = new PoolingAsyncClientConnectionManager(this.ioreactor, schemeRegistry);
this.httpclient = new DefaultHttpAsyncClient(this.connMgr);
this.httpclient.getParams()
.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 60000)
.setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 60000)
.setIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE, 8 * 1024)