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