CONNECTION_TIMEOUT和SO_TIMEOUT的区别

CONNECTION_TIMEOUT:建立连接超时

SO_TIMEOUT: 读数据超时,如:

引用
SO_TIMEOUT is the timeout that a read() call will block. If the timeout is reached, a java.net.SocketTimeoutException will be thrown

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.