generated from VLADIMIR/template
fix
This commit is contained in:
@@ -56,7 +56,7 @@ func startSMTPTestServer(t *testing.T, hang bool, cert tls.Certificate) (addr st
|
||||
// handleSMTPConn обслуживает один SMTP-диалог, достаточный для net/smtp:
|
||||
// EHLO, AUTH PLAIN, MAIL, RCPT, DATA, QUIT.
|
||||
func handleSMTPConn(conn net.Conn, messages chan<- []byte) {
|
||||
defer conn.Close()
|
||||
defer func() { _ = conn.Close() }()
|
||||
|
||||
r := bufio.NewReader(conn)
|
||||
write := func(s string) { _, _ = conn.Write([]byte(s)) }
|
||||
|
||||
Reference in New Issue
Block a user