abhinavsingh / proxy.py

💫 Ngrok FRP Alternative • ⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • 😈 TLS interception • 🔒 DNS-over-HTTPS • 🔥 Poor Man's VPN • ⏪ Reverse & ⏩ Forward • 👮🏿 "Proxy Server" framework • 🌐 "Web Server" framework • ➵ ➶ ➷ ➠ "PubSub" framework • 👷 "Work" acceptor & executor framework

Home Page:https://abhinavsingh.com/proxy-py-a-lightweight-single-file-http-proxy-server-in-python/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using proxy.plugin.ProxyPoolPlugin with proxy.plugin.CacheResponsesPlugin ssl interception

ydaniels opened this issue · comments

Using proxy.plugin.CacheResponsesPlugin and proxy.plugin.ProxyPoolPlugin does not seem to work together. handle_upstream_chunk is not getting called in BaseCacheResponsesPlugin

Steps to reproduce the behavior:

  1. Run proxy.py with plugins proxy.plugin.CacheResponsesPlugin, proxy.plugin.ProxyPoolPlugin
  2. handle_upstream_chunk does not get called in BaseCacheResponsesPlugin , therefore response chunks not getting persisted

Expected behavior
handle_upstream_chunk should be called in BaseCacheResponsesPlugin, if proxy.plugin.CacheResponsesPlugin is specified first

Version information

  • OS:Linux Ubunutu
    abhinavsingh/proxy.py docker