hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland Weber (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCORE-143) Connection timeout leaks socket fd
Date Fri, 01 Feb 2008 18:27:08 GMT

    [ https://issues.apache.org/jira/browse/HTTPCORE-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564856#action_12564856
] 

Roland Weber commented on HTTPCORE-143:
---------------------------------------

Maybe the question is stupid, but... why does your timeout callback not close the connection?
A timeout is just an indication of some problem, which may or may not be temporary.
It should be left to applications whether they want to close a connection or retry the communication.

just my 0.02€,
  Roland


> Connection timeout leaks socket fd
> ----------------------------------
>
>                 Key: HTTPCORE-143
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-143
>             Project: HttpComponents Core
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.0-rc1
>            Reporter: Sandeep Tamhankar
>            Priority: Critical
>         Attachments: DefaultConnectingIOReactor.java.diff
>
>
> Seen in an alpha7 snapshot: svn-597902
> Scenario:
> * I want to talk to a machine that has a firewall configured that drops inbound packets
on some port: iptables -I INPUT -p tcp --dport 8787 -j DROP
> * I set up a client that uses NIO to open a connection to that host:port, with some timeout.
> Expected Result:
> The connection should timeout and the fd should be closed.
> Actual Result:
> My timeout callback gets called, but the connection never gets closed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message