Default timeout for HttpComponent Client

后端 未结 5 766
我寻月下人不归
我寻月下人不归 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:54

    I'm observing infinite timeout. I'm using httpclient 4.5.13 which in turn uses httpcore 4.4.13 where SocketConfig class defines default 0 (no timeout). https://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/config/SocketConfig.html#getSoTimeout()

提交回复
热议问题