ncr / rack-proxy

A request/response rewriting HTTP proxy. A Rack app.
MIT License
269 stars 94 forks source link

Close streaming connection without body #104

Closed vladimirtemnikov closed 2 years ago

vladimirtemnikov commented 2 years ago

Close sockets immediately if response has appropriate status (no body)

Special thanks to @ElMassimo for help!

fixes #105

jrbeck commented 2 years ago

This fixes the issue that I've been having. Thank you for getting this up.

#<Errno::EMFILE: Failed to open TCP connection to 127.0.0.1:3036 (Too many open files - socket(2))>
tomocrafter commented 2 years ago

I'm in the same boat, hope this PR to be merged.

rohitpaulk commented 2 years ago

Same here!

vladimirtemnikov commented 2 years ago

@ncr updated here

ncr commented 2 years ago

Thank you for the PR. I have merged it but can't push the gem to rubygems - changed a phone recently and lost recovery 2FA keys, waiting for rubygems support response for some time now...

vladimirtemnikov commented 2 years ago

Great, waiting for a new version then :)