Simon Bernier St-Pierre

Results 35 comments of Simon Bernier St-Pierre

Can you check what the `ulimit` is for file descriptors on the system you're are using? I think the default is like 2048 on a lot of systems.

Hmm ok. 1048576 file descriptors should be plenty. Before we investigate further can you try an image that uses gblic instead of musl, like debian?

I took a lot at the man pages for the syscalls we use. We don't use nonblocking sockets so it pretty much eliminates `send` and `recv`. That leaves `connect` which...

I wonder if we could bypass this issue by simply sending `Accept-Encoding: gzip` instead of `Accept-Encoding: gzip, deflate`. In practice I think deflate is almost never used by websites. And...

I think we might be running into [these](https://en.wikipedia.org/wiki/HTTP_compression#Problems_preventing_the_use_of_HTTP_compression) kind of errors.

I tried playing with the accept endoing header that we send to `landolts.com`, and the error occurs if we have `gzip` in the accepted encodings, but not deflate or identity....

For what it's worth, I did a test with reqwest, and it seems like it also has this problem. It would be neat to get to the bottom of this...

I think we might be able to find some information on [this](https://stackoverflow.com/a/20765054/576488) stack overflow answer by Mark Adler.

Golang's http library has this issue as well. Looks like curl is one of the few places that figured it out.