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
^^^ Above connection hasn't dropped. As evident from server response Connection: keep-alive. Now, we can continue requesting further data over same connection until server drops the connection due to client inactivity or other reasons.
^^^ As evident from server header Connection: Close, connection was dropped by the server. Same can also be verified from proxy.py logs.
This is happening because currently proxy.py explicitly adds a Connection: Close header when sending requests to upstream server. We should fix this and only use Connection: Close if client has explicitly requested the same.
Without proxy.py using telnet
^^^ Above connection hasn't dropped. As evident from server response
Connection: keep-alive
. Now, we can continue requesting further data over same connection until server drops the connection due to client inactivity or other reasons.With proxy.py using telnet
Same behavior doesn't work when pointing telnet to
proxy.py
^^^ As evident from server header
Connection: Close
, connection was dropped by the server. Same can also be verified fromproxy.py
logs.This is happening because currently
proxy.py
explicitly adds aConnection: Close
header when sending requests to upstream server. We should fix this and only useConnection: Close
if client has explicitly requested the same.Cross reference https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection
The text was updated successfully, but these errors were encountered: