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.
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.