title: Can I set HttpConnectionParams.setSoTimeout() after couple of readLine()
body: <p>I am trying to write a JAVA based comet HTTP streaming. I am using apache httpClient 4.x for this. Since, it is comet HTTP streaming, all the events are coming to the client in the form of chunked data. Since the connection may stay opended for long time, I am trying to implement the dynamic setting of SO_TIMEOUT after some readLine() data from the server. </p>
  
  <p>When i set the value for SO_TIMEOUT after readLine from the BufferedInputStream, it is not taking effect, it is still using the original SO_TIMEOUT value set in before the execute() method call.</p>
  
  <p>Following is the definition of SO_TIMEOUT from apache website:
  <strong>Defines the socket timeout (SO_TIMEOUT) in milliseconds, which is the timeout for waiting for data or, put differently, a maximum period inactivity between two consecutive data packets). A timeout value of zero is interpreted as an infinite timeout.</strong> </p>
  
  <p>As per the above definition, SO_TIMEOUT value should get reset by the apache httpclient on the arrival of every chunked data. If that is the case, it should accept my newer SO_TIMEOUT value. Any idea on how I can set the SO_TIMEOUT value after reading couple of lines form BufferedInputStream?</p>