title: Using chronicle network library,
body: <p>Hello I am trying to send http request using low level library chronicle wire. I was able to get this working with use of java sockets but I am curious about the diff with use of this lib.
  Bellow the calling code:</p>
  <pre><code>private static void call() throws IOException, TimeoutException {
          final String desc = &quot;google.com&quot;;
          TCPRegistry.createServerSocketChannelFor(desc);
  
          EventLoop eg = new EventGroup(true);
          eg.start();
          TcpChannelHub tcpChannelHub = new TcpChannelHub(null, eg, WireType.TEXT, &quot;&quot;,
                  SocketAddressSupplier.uri(desc), false, null, HandlerPriority.HIGH, new FatalFailureConnectionStrategy(0, false));
          final long tid = tcpChannelHub.nextUniqueTransaction(System.currentTimeMillis());
  
          final Wire wire = new TextWire(Bytes.elasticByteBuffer());
  
          wire.writeDocument(true, w -&gt; w.write(&quot;tid&quot;).int64(tid));
          wire.write(&quot;GET / HTTP/1.1\\r\\n&quot;);
          wire.write(&quot;Host google.com\\r\\n&quot;);
          tcpChannelHub.writeSocket(wire, false, false);
          tcpChannelHub.proxyReply(TimeUnit.SECONDS.toMillis(1), tid);
      }
  </code></pre>
  <p>I am getting the following error:</p>
  <pre><code>20:26:43.275 [main/TcpChannelHub-Reads--(none)] DEBUG net.openhft.chronicle.network.connection.TcpChannelHub - connected to remoteAddress=(none)
  20:26:43.279 [main] DEBUG net.openhft.chronicle.network.connection.TcpChannelHub - tid=1606937203253 of client request
  20:26:44.279 [main] WARN net.openhft.chronicle.network.connection.TcpChannelHub - 
  java.util.concurrent.TimeoutException: timeoutTimeMs=1000
      at net.openhft.chronicle.network.connection.TcpChannelHub$TcpSocketConsumer.syncBlockingReadSocket(TcpChannelHub.java:1210)
      at net.openhft.chronicle.network.connection.TcpChannelHub.proxyReply(TcpChannelHub.java:685)
      at com.example.demo.DemoApplication.call(DemoApplication.java:115)
      at com.example.demo.DemoApplication.main(DemoApplication.java:31)
  20:26:44.280 [main] DEBUG net.openhft.chronicle.network.connection.TcpChannelHub - closing
  net.openhft.chronicle.core.StackTrace: only added for logging - please ignore ! on main
      at net.openhft.chronicle.network.connection.TcpChannelHub.closeSocket(TcpChannelHub.java:502)
      at net.openhft.chronicle.network.connection.TcpChannelHub.proxyReply(TcpChannelHub.java:693)
      at com.example.demo.DemoApplication.call(DemoApplication.java:115)
      at com.example.demo.DemoApplication.main(DemoApplication.java:31)
  20:26:44.281 [main] DEBUG net.openhft.chronicle.network.connection.TcpChannelHub - disconnected to remoteAddress=(none)
  
  Exception in thread &quot;main&quot; java.util.concurrent.TimeoutException: timeoutTimeMs=1000
  </code></pre>
  <p>1000ms should be enough so the problem is somewhere in the configuration.</p>