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
2.94k stars 569 forks source link

[ReverseProxyPlugin] Cannot Process Too Long Reponses `net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)` #1044

Open achen353 opened 2 years ago

achen353 commented 2 years ago

Hi,

Thank you so much for your help and patience on my previous issue. I am now using ReverseProxyPlugin to build my custom reverse proxy plugin. However, I seemed to encounter a similar problem to #292 where the plugin fails to process when the response is too big (like very big)

Here's the message showing the response being cut off when I tried to curl one of the CSS files of my webpage.

transfer closed with 1339938 bytes remaining to read
* Closing connection 0
curl: (18) transfer closed with 1339938 bytes remaining to read

Is there a way to work around this? I greatly appreciate your help :)

abhinavsingh commented 2 years ago

Please provide a minimal reproducible scenario. What is "very big"? There is little proxy.py can do if client or server closes the connection.

abhinavsingh commented 2 years ago

Example, provide a public URL which is broken via reverse proxy, then we can dig into it further. Thank you!!!