mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-19 14:57:04 +00:00
When handling a connection, today we only set a deadline after each command received. However, this does not cover our initial greeting, or the initial TLS handshake (if the socket is TLS), so a connection can hang indefininitely at that stage. This patch fixes that by setting a deadline earlier, before we send or receive anythong on the connection.