complete fix for early client.Close()

This commit is contained in:
AJ ONeal 2020-07-08 10:30:58 +00:00
parent 2f1f138bda
commit 10778eaab1
1 changed files with 1 additions and 6 deletions

View File

@ -3,7 +3,6 @@ package telebit
import ( import (
"errors" "errors"
"fmt" "fmt"
"io"
"net" "net"
"strconv" "strconv"
"strings" "strings"
@ -129,11 +128,7 @@ func (m *RouteMux) HandleTLS(servername string, acme *ACME, handler Handler) err
//NewTerminator(acme, handler)(client) //NewTerminator(acme, handler)(client)
//return handler.Serve(client) //return handler.Serve(client)
err := handler.Serve(TerminateTLS(wconn, acme)) return handler.Serve(TerminateTLS(wconn, acme))
if nil == err || io.EOF == err {
return io.EOF
}
return err
}), }),
}) })
return nil return nil