title: How does the timeout work in Restlet's client class?
body: <p>Here's some code:</p>
  
  <pre><code>Client client = new Client(Protocol.HTTP);
  client.setConnectTimeout(1); //milliseconds
  Response response = client.post(url, paramRepresentation);
  System.out.println("timed out");
  </code></pre>
  
  <p>What I would expect to happen is that it prints "timed out" before the resource has time to process.  Instead, nothing happens with the timeout and it doesn't print "timed out" until after the resource returns.  Even if I put a Thread.sleep(5000) at the resource that's handling the request, the entire sleep is performed, like the timeout did nothing.</p>
  
  <p>Anyone have experience with this? I'm using Restlet 1.1.1. Thanks.</p>