You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Geir Harald Hansen (JIRA)" <ji...@apache.org> on 2011/09/20 22:38:09 UTC
[jira] [Created] (HTTPCORE-277) Please expose TCP keep-alive
(SO_KEEPALIVE)
Please expose TCP keep-alive (SO_KEEPALIVE)
-------------------------------------------
Key: HTTPCORE-277
URL: https://issues.apache.org/jira/browse/HTTPCORE-277
Project: HttpComponents HttpCore
Issue Type: Improvement
Reporter: Geir Harald Hansen
It would be useful if it was possible to turn on TCP keep-alive (java.net.Socket.setKeepAlive) for a connection used for long polling (aka comet).
Some users these days are behind NAT routers that kill idle connections after as little as 5 minutes. TCP keep-alive could be a solution to keep long poll connections alive (and idle) longer than 5 minutes.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Updated] (HTTPCORE-277) Please expose TCP keep-alive
(SO_KEEPALIVE)
Posted by "Alin Vasile (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCORE-277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alin Vasile updated HTTPCORE-277:
---------------------------------
Attachment: keepalive.diff
a small patch (not tested with an actual web server)
> Please expose TCP keep-alive (SO_KEEPALIVE)
> -------------------------------------------
>
> Key: HTTPCORE-277
> URL: https://issues.apache.org/jira/browse/HTTPCORE-277
> Project: HttpComponents HttpCore
> Issue Type: Improvement
> Reporter: Geir Harald Hansen
> Fix For: 4.2-alpha3
>
> Attachments: keepalive.diff
>
>
> It would be useful if it was possible to turn on TCP keep-alive (java.net.Socket.setKeepAlive) for a connection used for long polling (aka comet).
> Some users these days are behind NAT routers that kill idle connections after as little as 5 minutes. TCP keep-alive could be a solution to keep long poll connections alive (and idle) longer than 5 minutes.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Updated] (HTTPCORE-277) Please expose TCP keep-alive
(SO_KEEPALIVE)
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCORE-277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated HTTPCORE-277:
---------------------------------------
Fix Version/s: 4.2-alpha3
> Please expose TCP keep-alive (SO_KEEPALIVE)
> -------------------------------------------
>
> Key: HTTPCORE-277
> URL: https://issues.apache.org/jira/browse/HTTPCORE-277
> Project: HttpComponents HttpCore
> Issue Type: Improvement
> Reporter: Geir Harald Hansen
> Fix For: 4.2-alpha3
>
>
> It would be useful if it was possible to turn on TCP keep-alive (java.net.Socket.setKeepAlive) for a connection used for long polling (aka comet).
> Some users these days are behind NAT routers that kill idle connections after as little as 5 minutes. TCP keep-alive could be a solution to keep long poll connections alive (and idle) longer than 5 minutes.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[jira] [Resolved] (HTTPCORE-277) Please expose TCP keep-alive
(SO_KEEPALIVE)
Posted by "Oleg Kalnichevski (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCORE-277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved HTTPCORE-277.
----------------------------------------
Resolution: Fixed
Submitted slightly modified version of the patch. Also added support for SO_KEEPALIVE parameter to NIO components.
Oleg
> Please expose TCP keep-alive (SO_KEEPALIVE)
> -------------------------------------------
>
> Key: HTTPCORE-277
> URL: https://issues.apache.org/jira/browse/HTTPCORE-277
> Project: HttpComponents HttpCore
> Issue Type: Improvement
> Reporter: Geir Harald Hansen
> Fix For: 4.2-alpha3
>
> Attachments: keepalive.diff
>
>
> It would be useful if it was possible to turn on TCP keep-alive (java.net.Socket.setKeepAlive) for a connection used for long polling (aka comet).
> Some users these days are behind NAT routers that kill idle connections after as little as 5 minutes. TCP keep-alive could be a solution to keep long poll connections alive (and idle) longer than 5 minutes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org