ninenines / gun

HTTP/1.1, HTTP/2, Websocket client (and more) for Erlang/OTP.
ISC License
891 stars 232 forks source link

Set a default send_timeout value #224

Closed essen closed 1 year ago

essen commented 4 years ago

Sometimes the client is sending much faster than the server is able to process, and the client gets stuck sending data. Then the server may also get stuck when sending data in responses that the client will not process, for example when HTTP/1.1 pipelining was used. Gun should not lock up in these cases, it should just give up.

The Transport:send return value may also need to be checked in order to speed up dropping the connection.

essen commented 1 year ago

Done.