You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Adam Bryzak (JIRA)" <ji...@apache.org> on 2009/03/10 13:56:50 UTC

[jira] Created: (HTTPCORE-191) SocketHttpClientConnection does not support socket timeouts while reading response header

SocketHttpClientConnection does not support socket timeouts while reading response header
-----------------------------------------------------------------------------------------

                 Key: HTTPCORE-191
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-191
             Project: HttpComponents HttpCore
          Issue Type: Bug
          Components: HttpCore
    Affects Versions: 4.0
            Reporter: Adam Bryzak


Similar to HTTPCORE-190, SocketHttpClientConnection, or more specifically AbstractHttpClientConnection.receiveResponseHeader() does not store state of the current request being read, meaning a SocketTimeoutException occurring while reading the status line or any of the headers will cause a retry to start reading the next part of the data as if it were the status line when the call is retried.

This is not causing an issue for me personally. I only spotted it when I was testing the fix to HTTPCORE-190 by writing the response 1 byte at a time with a timeout being caused for each byte. I am unsure of any web servers that may have a delay when writing the status line and/or headers that would cause a timeout.

-- 
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] Closed: (HTTPCORE-191) SocketHttpClientConnection does not support socket timeouts while reading response header

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

Oleg Kalnichevski closed HTTPCORE-191.
--------------------------------------


> SocketHttpClientConnection does not support socket timeouts while reading response header
> -----------------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-191
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-191
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore
>    Affects Versions: 4.0
>            Reporter: Adam Bryzak
>             Fix For: 4.1
>
>         Attachments: HttpCore_191.java
>
>
> Similar to HTTPCORE-190, SocketHttpClientConnection, or more specifically AbstractHttpClientConnection.receiveResponseHeader() does not store state of the current request being read, meaning a SocketTimeoutException occurring while reading the status line or any of the headers will cause a retry to start reading the next part of the data as if it were the status line when the call is retried.
> This is not causing an issue for me personally. I only spotted it when I was testing the fix to HTTPCORE-190 by writing the response 1 byte at a time with a timeout being caused for each byte. I am unsure of any web servers that may have a delay when writing the status line and/or headers that would cause a timeout.

-- 
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-191) SocketHttpClientConnection does not support socket timeouts while reading response header

Posted by "Adam Bryzak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCORE-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680626#action_12680626 ] 

Adam Bryzak commented on HTTPCORE-191:
--------------------------------------

Verified. Thanks for your effort in fixing these bugs.

> SocketHttpClientConnection does not support socket timeouts while reading response header
> -----------------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-191
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-191
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore
>    Affects Versions: 4.0
>            Reporter: Adam Bryzak
>             Fix For: 4.1
>
>         Attachments: HttpCore_191.java
>
>
> Similar to HTTPCORE-190, SocketHttpClientConnection, or more specifically AbstractHttpClientConnection.receiveResponseHeader() does not store state of the current request being read, meaning a SocketTimeoutException occurring while reading the status line or any of the headers will cause a retry to start reading the next part of the data as if it were the status line when the call is retried.
> This is not causing an issue for me personally. I only spotted it when I was testing the fix to HTTPCORE-190 by writing the response 1 byte at a time with a timeout being caused for each byte. I am unsure of any web servers that may have a delay when writing the status line and/or headers that would cause a timeout.

-- 
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-191) SocketHttpClientConnection does not support socket timeouts while reading response header

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

Oleg Kalnichevski resolved HTTPCORE-191.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.1

Fixed in SVN trunk. Could you please verify?

Oleg

> SocketHttpClientConnection does not support socket timeouts while reading response header
> -----------------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-191
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-191
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore
>    Affects Versions: 4.0
>            Reporter: Adam Bryzak
>             Fix For: 4.1
>
>         Attachments: HttpCore_191.java
>
>
> Similar to HTTPCORE-190, SocketHttpClientConnection, or more specifically AbstractHttpClientConnection.receiveResponseHeader() does not store state of the current request being read, meaning a SocketTimeoutException occurring while reading the status line or any of the headers will cause a retry to start reading the next part of the data as if it were the status line when the call is retried.
> This is not causing an issue for me personally. I only spotted it when I was testing the fix to HTTPCORE-190 by writing the response 1 byte at a time with a timeout being caused for each byte. I am unsure of any web servers that may have a delay when writing the status line and/or headers that would cause a timeout.

-- 
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] Updated: (HTTPCORE-191) SocketHttpClientConnection does not support socket timeouts while reading response header

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

Adam Bryzak updated HTTPCORE-191:
---------------------------------

    Attachment: HttpCore_191.java

I've attached a test case (with a main method, not a JUnit test case) that demonstrates the issue.

> SocketHttpClientConnection does not support socket timeouts while reading response header
> -----------------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-191
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-191
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore
>    Affects Versions: 4.0
>            Reporter: Adam Bryzak
>         Attachments: HttpCore_191.java
>
>
> Similar to HTTPCORE-190, SocketHttpClientConnection, or more specifically AbstractHttpClientConnection.receiveResponseHeader() does not store state of the current request being read, meaning a SocketTimeoutException occurring while reading the status line or any of the headers will cause a retry to start reading the next part of the data as if it were the status line when the call is retried.
> This is not causing an issue for me personally. I only spotted it when I was testing the fix to HTTPCORE-190 by writing the response 1 byte at a time with a timeout being caused for each byte. I am unsure of any web servers that may have a delay when writing the status line and/or headers that would cause a timeout.

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