short connection lead to too much time_wait #918
-
when use short connection as upstream proxy but I found too much time_wait? not like go http reqeust, it must call response.Body.Close() to close http reqeust client. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The Close() will be called when the response has been forwarded to client. See: https://github.com/baidu/bfe/blob/develop/bfe_server/reverseproxy.go#L679 @songlong |
Beta Was this translation helpful? Give feedback.
-
old version closed not like this. |
Beta Was this translation helpful? Give feedback.
The Close() will be called when the response has been forwarded to client.
See: https://github.com/baidu/bfe/blob/develop/bfe_server/reverseproxy.go#L679 @songlong