-
I created proxy, I saw too many TIME_WAIT with netstat -nt. What could be the reason? Without going through the proxy, TIME_WAIT is very minimal. The TIME_WAIT is betwee proxy<->target. TIME_WAIT is normal on client <-> proxy. I would think if the client has "connection: keep-alive", the proxy would honor the option, but it's not. I have to add the http.Agent. Also I thought that if the client wants "keep-alive", the proxy would forward the headers to the target, and also tried to keep the connection at its end; but it seems that the Http Proxy closes the connection to the target for every request? the verison is: "devDependencies": {
Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Updated If I use agent = new http.Agent({keepAlive: true });
Then the problem is solved. |
Beta Was this translation helpful? Give feedback.
Updated
If I use
agent = new http.Agent({keepAlive: true });
Then the problem is solved.