jira-importer opened a new issue, #847:
URL: https://github.com/apache/httpcomponents-core/issues/847

   **[Geir Harald 
Hansen](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=drharibo)** 
opened 
**[HTTPCORE-288](https://issues.apache.org/jira/browse/HTTPCORE-288?redirect=false)**
 and commented
   
   Request:
   HttpConnection#setTcpNoDelay() and setSocketKeepalive() methods to modify 
those socket settings on the fly like can be done with setSocketTimeout()
   
   Motivation:
   Set different socket options depending on the request to support different 
services on the same port. E.g. turn on TCP_NODELAY for requests to an 
AJAX-based unix shell, but turn it off for transferring large files. Turn on 
SO_KEEPALIVE and turn off socket timeout for long poll (comet) requests, but 
not for other requests.
   
   Potential problem:
   When using persistent connections it is easy to forget that these options 
survive to the next request. This situation exists with socket timeout already, 
though. You have to remember to set it back when sending a response if you 
don't want it for the next request. Perhaps a way to set 
timeout/nodelay/keepalive temporarily only for the current request is useful. 
Either way, I'd be happy to just be able to set nodelay and keepalive on the 
fly.
   
   
   ---
   
   **Affects:** 4.2-alpha2
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to