连接和连接请求超时
Connection and connection request timeout
35
HttpClient
has a way to set connection and socket timeout (setConnectionTimeout()
and setTimeout()
) according to the HttpClient javadocs.
Connection timeout
is the timeout until a connection with the server is established.
Socket timeout
is the timeout to receive data (socket timeout).
HttpClient
有一种根据HttpClient javadocs设置连接和套接字超时(setConnectionTimeout()
和)的方法。setTimeout()
Connection timeout
是与服务器建立连接之前的超时时间。
Socket timeout
是接收数据的超时时间(套接字超时)。
摘抄自网络,便于检索查找。