Default timeout for HttpComponent Client

后端 未结 5 664
我寻月下人不归
我寻月下人不归 2021-02-12 17:57

I can\'t find any documentation on the default httpParams for httpclient 4.1 ?

What\'s the default socket timeout when I do a GET ?

5条回答
  •  伪装坚强ぢ
    2021-02-12 18:43

    https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/config/RequestConfig.html#getSocketTimeout%28%29

    A timeout value of zero is interpreted as an infinite timeout. A negative value is interpreted as undefined (system default).

    Default: -1

提交回复
热议问题