什么是 read timeout【重要】
SocketTimeout - Defines the socket timeout (SO_TIMEOUT) in milliseconds, which is the timeout for waiting for data or, put differently, a maximum period inactivity between two consecutive data packets).
ConnectTimeout - Determines the timeout in milliseconds until a connection is established. A timeout value of zero is interpreted as an infinite timeout.
ConnectionRequestTimeout - Returns the timeout in milliseconds used when requesting a connection from the connection manager. A timeout value of zero is interpreted as an infinite timeout.
What you're looking for is SocketTimeout.
https://stackoverflow.com/questions/41291976/apache-httpclient-timeout-at-any-moment

那个red X可能是对的
- https://blog.csdn.net/weixin_46425661/article/details/142260579#CONNECT_TIMEOUT_MILLIS5_57
- SO_TIMEOUT 主要用在阻塞 IO,阻塞 IO 中 accept,read 等都是无限等待的,如果不希望永远阻塞,使用它调整超时时间
- 两个超时对应两个阻塞
浙公网安备 33010602011771号