commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiaoyu <>
Subject Why just got Read timed out
Date Mon, 09 Jan 2017 09:02:44 GMT
Hello, everyone: 

       I  am developing a file transport tool using httpclient V3.1

       Now I get " Read timed out" when I was trying to upload
a file to the sever(Tomcat V7.5.35)
           Read timed out
     at Method)
at Source)
at Source)
at Source)
at org.apache.commons.httpclient.HttpParser.readRawLine(
at org.apache.commons.httpclient.HttpParser.readLine(
at org.apache.commons.httpclient.HttpConnection.readLine(
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(
at org.apache.commons.httpclient.HttpMethodBase.readResponse(
at org.apache.commons.httpclient.HttpMethodBase.execute(
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(
at org.apache.commons.httpclient.HttpClient.executeMethod(
at org.apache.commons.httpclient.HttpClient.executeMethod(
at com.xiaoyu.tool.transport.transport.http.HttpUploadThread.run1(
at com.xiaoyu.tool.transport.transport.UploadFile.beginUpload(
at com.xiaoyu.tool.transport.transport.UploadFile.doUpload(
at Source)

       But I have set server_socket_timeout to zero, which means  an infinite timeout according
the API

                    HttpConnectionManagerParams params = new HttpConnectionManagerParams();
                    int SOCKET_NO_TIME_OUT = 0;

       So why I got this excetpion here ? 
       Any help would mean a lot.
       Thank you !


Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies
your system. Thank you.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message