Skip to content

Commit

Permalink
debug: add address to tls error
Browse files Browse the repository at this point in the history
  • Loading branch information
ppzqh committed Oct 8, 2024
1 parent d4e163a commit 981c7cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/remote/trans/nphttp2/conn_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package nphttp2
import (
"context"
"crypto/tls"
"fmt"
"net"
"runtime"
"sync"
Expand Down Expand Up @@ -109,9 +110,9 @@ func (p *connPool) newTransport(ctx context.Context, dialer remote.Dialer, netwo
return nil, err
}
if opts.TLSConfig != nil {
tlsConn, err := newTLSConn(conn, opts.TLSConfig)
if err != nil {
return nil, err
tlsConn, tErr := newTLSConn(conn, opts.TLSConfig)
if tErr != nil {
return nil, fmt.Errorf("remoteAddress=%s, error=%v", address, tErr)
}
conn = tlsConn
}
Expand Down

0 comments on commit 981c7cc

Please sign in to comment.