resume destination upon new incoming connection in HTTP and SOCKS proxy

This commit is contained in:
orignal
2026-04-08 20:46:58 -04:00
parent ae3de9ef46
commit 62c5a96cd9
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -538,6 +538,7 @@ namespace proxy
m_send_buf.append(m_recv_buf);
/* connect to destination */
LogPrint(eLogDebug, "HTTPProxy: Connecting to host ", dest_host, ":", dest_port);
GetOwner ()->UpdateLastActivityTime ();
GetOwner()->CreateStream (std::bind (&HTTPReqHandler::HandleStreamRequestComplete,
shared_from_this(), std::placeholders::_1), dest_host, dest_port);
return true;