private void execute(final NHttpClientEventHandler clientHandler) throws IOException {
IOEventDispatch ioEventDispatch = new DefaultHttpClientIODispatch(clientHandler, this.connFactory) {
@Override
protected DefaultNHttpClientConnection createConnection(IOSession session) {
DefaultNHttpClientConnection conn = super.createConnection(session);
conn.setSocketTimeout(timeout);
return conn;
}
};
this.ioReactor.execute(ioEventDispatch);