final IOEventDispatch ioEventDispatch = new DefaultHttpClientIODispatch(clientHandler,
new DefaultNHttpClientConnectionFactory(ConnectionConfig.DEFAULT)) {
@Override
protected DefaultNHttpClientConnection createConnection(final IOSession session) {
final DefaultNHttpClientConnection conn = super.createConnection(session);
conn.setSocketTimeout(timeout);
return conn;
}
};
this.ioReactor.execute(ioEventDispatch);