mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
80d800e6d4
This stops servers from crashing when a client's socket buffer becomes full and we can't post any more messages to it. Normally this means the client process is hanged/spinning, but I suppose this could also happen under severe system load. It's unclear to me what a better solution here would be. We can't keep buffering messages indefinitely if the client is just never going to receive them anyway. At some point we have to cut our losses, and it seems pretty reasonable to let the kernel socket buffer be the cutoff. It will be the responsibility of the individual server implementations to avoid sending messages to clients that may be unable to handle them. |
||
---|---|---|
.. | ||
ClientConnection.h | ||
CMakeLists.txt | ||
Decoder.cpp | ||
Decoder.h | ||
Dictionary.h | ||
Encoder.cpp | ||
Encoder.h | ||
Endpoint.cpp | ||
Endpoint.h | ||
Forward.h | ||
Message.cpp | ||
Message.h | ||
ServerConnection.h |