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
https://abhinavsingh.com/proxy-py-a-lightweight-single-file-http-proxy-server-in-python/
BSD 3-Clause "New" or "Revised" License
3.01k stars 573 forks source link

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

Open ydaniels opened 1 year ago

ydaniels commented 1 year ago

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