mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-26 20:35:56 +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.