Sharon Rosner
Sharon Rosner
That's a great idea, adding such a flag will be very useful! Keep in mind though that if you want to support older Linux kernel versions (once this feature lands...
`#respond_deflate_from_io` could be rewritten using `#feed_loop`: ```ruby def respond_deflate_from_io(io, opts) deflater = Zlib::Deflate.new io.feed_loop(deflater, :deflate) { |deflated| adapter.send_chunk(deflated) } deflated = deflater.flush adapter.send_chunk(deflated, done: true) end ```
An interesting experiment would be to add an example Tipi app for benchmarking different ways of sending a zipped response: - ~~Three~~four file sizes: 1024K, 128K, 1M, 16M - The...
Adding some custom C-level usage of zlib is also an interesting direction. The API looks quite simple: https://zlib.net/zlib_how.html. Performance wise there's a good chance that if we find a way...
OK, this is coming from the [h1p](https://github.com/digital-fabric/h1p) parser. A couple questions: - Does this happen consistently every time? - Does it happen on a specific URL?
Actually, can you generate the same exception using `curl -v ...`, then copy the output from curl here?
Thanks for reporting this. This is a known problem and has to do with underlying changes that were made in Ruby 2.7. I'm currently investigating how to solve this.
HI, no, for the moment there isn't one. I'll try and find a moment to work on it, but personally this is not a priority. I'm always open to contributions...
Could you give a script that reproduces this?
Can you include some code to show what you are doing? I'd like to investigate this.