[
https://issues.apache.org/jira/browse/HTTPCLIENT-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPCLIENT-1289.
-------------------------------------------
Resolution: Invalid
JIRA is an issue tracker and not a forum. Please post your questions to the
HttpClient user list.
500 status signals some sort of server sider problem. Apparently the server is
unable to respond to subsequent requests after that causing the connection to
time out.
Oleg
> Timeout exception caused by http 500 error
> ------------------------------------------
>
> Key: HTTPCLIENT-1289
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1289
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Reporter: shin
>
> I'm trying using fluent client, but getting a strange issue.
> Here is the pseudo code
> -----------------------------------------
> public String get(String url) throw Exception
> {
> return .Get("http://somehost/")
> .connectTimeout(1000)
> .socketTimeout(1000)
> .execute().returnContent().asString();
> }
> int main()
> {
> try
> {
> get("urlA");
> }
> catch(Exception e)
> e.printstack();
> try
> {
> get("urlB");
> }
> catch(Exception e)
> e.printstack();
>
> }
> -------------------------
> Here is the problem
> If I enter the first get function, get a http 500 exception.
> Then get urlB , it would block until the socket timeout, and throw a timeout
> exception.
> any solution?
> urlB can be executed in front of urlA
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]