title: Connection timeout in playframework 1.4
body: <p>I always have connection timeout when making GET request from one Controller to another with Unirest library</p>
  
  <p>Application runs at </p>
  
  <pre><code>http://localhost:9000
  </code></pre>
  
  <p>My code in <code>Slash extends Controller</code> is:</p>
  
  <pre><code> String URL = "http://localhost:9000/api/link/HZbeTR";
   Logger.info("Requesting API. URL: %s. ObjectRef: %s", URL, objectRef);
   HttpResponse&lt;String&gt; apiResponse = Unirest.get(URL).asString();
  </code></pre>
  
  <p>At logs I have:</p>
  
  <pre><code> 17:40:24,296 INFO  ~ Requesting API. URL: http://192.168.2.36:9000/api/link/HZbeTR. ObjectRef: 5g2NqY
   17:41:24,527 ERROR ~ Exception while searching for link by ident. Ident: HZbeTR, ObjectRef: 5g2NqY
   17:41:24,528 ERROR ~ ObjectRef: 5g2NqY
   com.mashape.unirest.http.exceptions.UnirestException: java.net.SocketTimeoutException: Read timed out
      at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:143)
      at com.mashape.unirest.request.BaseRequest.asString(BaseRequest.java:56)
      at controllers.Slash.index(Slash.java:39)
      at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:524)
      at play.mvc.ActionInvoker.invoke(ActionInvoker.java:475)
      at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:451)
      at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:446)
      at play.mvc.ActionInvoker.invoke(ActionInvoker.java:160)
      at Invocation.HTTP Request(Play!)
  Caused by: java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
  com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:138)
      ... 8 more
  17:41:24,932 DEBUG ~ Try to write on a closed channel[keepAlive:true]: Remote host may have closed the connection
  </code></pre>
  
  <p>Path <code>/api/link/{str}</code> is routed to another class extending controller.</p>
  
  <p>When requesting directly to <code>http://localhost:9000/api/link/HZbeTR</code>, just few milliseconds and I have response.</p>
  
  <p>I debugged networking and found that is no request like <code>GET http://localhost:9000/api/link/HZbeTR</code></p>
  
  <p>Also I put <code>String URL = "http://yandex.ru"</code> and Unirest did request to Yandex successfully.</p>