From 10778eaab14e1000b1615e8f391c572d2e6cba10 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 8 Jul 2020 10:30:58 +0000 Subject: [PATCH] complete fix for early client.Close() --- mplexer/routemux.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mplexer/routemux.go b/mplexer/routemux.go index 0b5f960..f368e58 100644 --- a/mplexer/routemux.go +++ b/mplexer/routemux.go @@ -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