• Alberto Bertogli's avatar
    smtpsrv: Set connection deadline before the initial greeting · cac1e161
    Alberto Bertogli authored
    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.
    cac1e161
Name
Last commit
Last update
cmd Loading commit data...
docs Loading commit data...
etc Loading commit data...
internal Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.travis.yml Loading commit data...
INSTALL.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
UPGRADING.md Loading commit data...
chasquid.go Loading commit data...
coverage_test.go Loading commit data...
dnsoverride.go Loading commit data...