You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Maurizio Sartori (JIRA)" <ji...@apache.org> on 2008/03/28 15:24:24 UTC

[jira] Created: (HTTPCORE-156) NHttpClient never terminate on timeout

NHttpClient never terminate on timeout
--------------------------------------

                 Key: HTTPCORE-156
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-156
             Project: HttpComponents HttpCore
          Issue Type: Bug
          Components: Examples, HttpCore NIO
    Affects Versions: 4.0-beta1
         Environment: Linux 
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
            Reporter: Maurizio Sartori


NHttpClient never terminate when a timeout happen.

To recreate the problem change the line
        new InetSocketAddress("www.yahoo.com", 80), 
and set an IP that does not exists
        new InetSocketAddress("10.15.2.32", 80), 

Compile an run:

Connection open: [www.google.com/209.85.129.104:80]
--------------
Sending request to http://www.google.ch
--------------
--------------
HTTP/1.1 200 OK
--------------
Document length: 6675
--------------
Connection open: [www.apache.org/140.211.11.130:80]
--------------
Sending request to http://www.apache.org
--------------
--------------
HTTP/1.1 200 OK
--------------
Document length: 17972
--------------
Connection timed out: [closed]
Connection closed: [closed]
Connection timed out: [closed]
Connection closed: [closed]


And it never terminates.


-- 
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


[jira] Commented: (HTTPCORE-156) NHttpClient never terminate on timeout

Posted by "Maurizio Sartori (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCORE-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583643#action_12583643 ] 

Maurizio Sartori commented on HTTPCORE-156:
-------------------------------------------

Hi Oleg,
now it works as expected.

Please correct NHttpSSLClient.java too.

Thanks

> NHttpClient never terminate on timeout
> --------------------------------------
>
>                 Key: HTTPCORE-156
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-156
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: Examples, HttpCore NIO
>    Affects Versions: 4.0-beta1
>         Environment: Linux 
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
>            Reporter: Maurizio Sartori
>             Fix For: 4.0-beta2
>
>
> NHttpClient never terminate when a timeout happen.
> To recreate the problem change the line
>         new InetSocketAddress("www.yahoo.com", 80), 
> and set an IP that does not exists
>         new InetSocketAddress("10.15.2.32", 80), 
> Compile an run:
> Connection open: [www.google.com/209.85.129.104:80]
> --------------
> Sending request to http://www.google.ch
> --------------
> --------------
> HTTP/1.1 200 OK
> --------------
> Document length: 6675
> --------------
> Connection open: [www.apache.org/140.211.11.130:80]
> --------------
> Sending request to http://www.apache.org
> --------------
> --------------
> HTTP/1.1 200 OK
> --------------
> Document length: 17972
> --------------
> Connection timed out: [closed]
> Connection closed: [closed]
> Connection timed out: [closed]
> Connection closed: [closed]
> And it never terminates.

-- 
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


[jira] Commented: (HTTPCORE-156) NHttpClient never terminate on timeout

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCORE-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583852#action_12583852 ] 

Oleg Kalnichevski commented on HTTPCORE-156:
--------------------------------------------

Fixed NHttpSSLClient.java as well.

Oleg

> NHttpClient never terminate on timeout
> --------------------------------------
>
>                 Key: HTTPCORE-156
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-156
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: Examples, HttpCore NIO
>    Affects Versions: 4.0-beta1
>         Environment: Linux 
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
>            Reporter: Maurizio Sartori
>             Fix For: 4.0-beta2
>
>
> NHttpClient never terminate when a timeout happen.
> To recreate the problem change the line
>         new InetSocketAddress("www.yahoo.com", 80), 
> and set an IP that does not exists
>         new InetSocketAddress("10.15.2.32", 80), 
> Compile an run:
> Connection open: [www.google.com/209.85.129.104:80]
> --------------
> Sending request to http://www.google.ch
> --------------
> --------------
> HTTP/1.1 200 OK
> --------------
> Document length: 6675
> --------------
> Connection open: [www.apache.org/140.211.11.130:80]
> --------------
> Sending request to http://www.apache.org
> --------------
> --------------
> HTTP/1.1 200 OK
> --------------
> Document length: 17972
> --------------
> Connection timed out: [closed]
> Connection closed: [closed]
> Connection timed out: [closed]
> Connection closed: [closed]
> And it never terminates.

-- 
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


[jira] Commented: (HTTPCORE-156) NHttpClient never terminate on timeout

Posted by "Maurizio Sartori (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCORE-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584103#action_12584103 ] 

Maurizio Sartori commented on HTTPCORE-156:
-------------------------------------------

Thanks

> NHttpClient never terminate on timeout
> --------------------------------------
>
>                 Key: HTTPCORE-156
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-156
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: Examples, HttpCore NIO
>    Affects Versions: 4.0-beta1
>         Environment: Linux 
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
>            Reporter: Maurizio Sartori
>             Fix For: 4.0-beta2
>
>
> NHttpClient never terminate when a timeout happen.
> To recreate the problem change the line
>         new InetSocketAddress("www.yahoo.com", 80), 
> and set an IP that does not exists
>         new InetSocketAddress("10.15.2.32", 80), 
> Compile an run:
> Connection open: [www.google.com/209.85.129.104:80]
> --------------
> Sending request to http://www.google.ch
> --------------
> --------------
> HTTP/1.1 200 OK
> --------------
> Document length: 6675
> --------------
> Connection open: [www.apache.org/140.211.11.130:80]
> --------------
> Sending request to http://www.apache.org
> --------------
> --------------
> HTTP/1.1 200 OK
> --------------
> Document length: 17972
> --------------
> Connection timed out: [closed]
> Connection closed: [closed]
> Connection timed out: [closed]
> Connection closed: [closed]
> And it never terminates.

-- 
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


[jira] Resolved: (HTTPCORE-156) NHttpClient never terminate on timeout

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCORE-156.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0-beta2

Maurizio,

I applied a fix for the problem to the SVN trunk. Could you please review / test the fix and let me know if that solved the problem for you?

Oleg

> NHttpClient never terminate on timeout
> --------------------------------------
>
>                 Key: HTTPCORE-156
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-156
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: Examples, HttpCore NIO
>    Affects Versions: 4.0-beta1
>         Environment: Linux 
> java version "1.6.0_03"
> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
> Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
>            Reporter: Maurizio Sartori
>             Fix For: 4.0-beta2
>
>
> NHttpClient never terminate when a timeout happen.
> To recreate the problem change the line
>         new InetSocketAddress("www.yahoo.com", 80), 
> and set an IP that does not exists
>         new InetSocketAddress("10.15.2.32", 80), 
> Compile an run:
> Connection open: [www.google.com/209.85.129.104:80]
> --------------
> Sending request to http://www.google.ch
> --------------
> --------------
> HTTP/1.1 200 OK
> --------------
> Document length: 6675
> --------------
> Connection open: [www.apache.org/140.211.11.130:80]
> --------------
> Sending request to http://www.apache.org
> --------------
> --------------
> HTTP/1.1 200 OK
> --------------
> Document length: 17972
> --------------
> Connection timed out: [closed]
> Connection closed: [closed]
> Connection timed out: [closed]
> Connection closed: [closed]
> And it never terminates.

-- 
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