complete fix for early client.Close()
This commit is contained in:
parent
2f1f138bda
commit
10778eaab1
|
@ -3,7 +3,6 @@ package telebit
|
|||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
@ -129,11 +128,7 @@ func (m *RouteMux) HandleTLS(servername string, acme *ACME, handler Handler) err
|
|||
|
||||
//NewTerminator(acme, handler)(client)
|
||||
//return handler.Serve(client)
|
||||
err := handler.Serve(TerminateTLS(wconn, acme))
|
||||
if nil == err || io.EOF == err {
|
||||
return io.EOF
|
||||
}
|
||||
return err
|
||||
return handler.Serve(TerminateTLS(wconn, acme))
|
||||
}),
|
||||
})
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue