complete fix for early client.Close()
This commit is contained in:
parent
2f1f138bda
commit
10778eaab1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue