You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.
不能简单直接的关闭, 否则取内容的地方会报错 java.net.SocketException: Socket is closed
com.feilong.net.UncheckedHttpException: java.net.SocketException: Socket is closed
at com.feilong.net.httpclient4.builder.HttpResponseUtil.getResultString(HttpResponseUtil.java:62)
at com.feilong.net.httpclient4.HttpClientUtil.getResponseBodyAsString(HttpClientUtil.java:986)
at com.feilong.net.httpclient4.HttpClientUtil.getResponseBodyAsString(HttpClientUtil.java:893)
at com.feilong.net.httpclient4.HttpClientUtil.get(HttpClientUtil.java:597)
HttpRequestExecuter.execute(HttpRequest, ConnectionConfig) 需要显示的关闭 httpUriRequest
不管是执行成功还是出现了异常
如果不abort , 那么在复用httpclient 的情况下, 以下代码会出现, 不能从连接池中拿链接的情况
The text was updated successfully, but these errors were encountered: