(java) 用户httpclient的put请求上传文件出现sockettimeoutexception

Caused by: java.net.SocketTimeoutException: Read timed out

at java.net.SocketInputStream.socketRead0Native Method
at java.net.SocketInputStream.readSocketInputStream.java:150
at java.net.SocketInputStream.readSocketInputStream.java:121
at org.apache.http.impl.conn.LoggingInputStream.readLoggingInputStream.java:87
at org.apache.http.impl.io.SessionInputBufferImpl.streamReadSessionInputBufferImpl.java:139
at org.apache.http.impl.io.SessionInputBufferImpl.fillBufferSessionInputBufferImpl.java:155
at org.apache.http.impl.io.SessionInputBufferImpl.readLineSessionInputBufferImpl.java:284
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHeadDefaultHttpResponseParser.java:140
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHeadDefaultHttpResponseParser.java:57
at org.apache.http.impl.io.AbstractMessageParser.parseAbstractMessageParser.java:261
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeaderDefaultBHttpClientConnection.java:165
at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeaderCPoolProxy.java:167
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponseHttpRequestExecutor.java:272
at org.apache.http.protocol.HttpRequestExecutor.executeHttpRequestExecutor.java:124
at org.apache.http.impl.execchain.MainClientExec.executeMainClientExec.java:271
at org.apache.http.impl.execchain.ProtocolExec.executeProtocolExec.java:184
at org.apache.http.impl.execchain.RetryExec.executeRetryExec.java:88
at org.apache.http.impl.execchain.RedirectExec.executeRedirectExec.java:110
at org.apache.http.impl.client.InternalHttpClient.doExecuteInternalHttpClient.java:184
at org.apache.http.impl.client.CloseableHttpClient.executeCloseableHttpClient.java:82
at org.apache.http.impl.client.CloseableHttpClient.executeCloseableHttpClient.java:107

发表评论

电子邮件地址不会被公开。 必填项已用*标注