-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HttpUrlConnection会复用tcp链接 #54
Comments
这是正常的吗,现在有业务方反映他们服务出现大量close_wait,怀疑是客户端的问题,他们的服务器用的weblogic |
他们的服务作为客户端,他们抓包,所有的请求,notification和getConfig接口都会触发fin,异常的时候是,客户端接受到304之后20秒内没有FIN掉链接,而是20秒时服务端触发FIN,这样客户端就处于close_wait,这个20秒应该是服务端的connectionTimeout的值导致的 |
|
我们已经查出来了,是apollo-client中的DefaultHttpClient类
生成连接那行的openConnection() 方法在WebLogic上执行的时候返回的是WebLogic自己的类,那个类没有keepAlive(从tcpdump结果来看),是有问题的 |
回答您的问题: |
使用JDK自带的半拉子http client,总是有各种莫名其妙的问题。 |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
是weblogic的问题 |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions. |
在使用中使用tcpdump抓包发现,客户端在调长连接接口时结束之后,即使stream被close了,tcp也不会触发FIN,而是下次调notification接口时还是在原来的tcp上进行传输。
但是掉queryConfig接口则会触发FIN,但是Sync和Fin间隔120秒
The text was updated successfully, but these errors were encountered: