We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The comment reads: // If zero, a default is used.
// If zero, a default is used.
// DialTimeout optionally specifies a dial timeout. // If zero, a default is used. // If negative, the timeout is disabled. DialTimeout time.Duration
The source says: if zero, the timeout is disabled
if zero, the timeout is disabled
func (dp *DialProxy) HandleConn(src net.Conn) { ctx := context.Background() var cancel context.CancelFunc if dp.DialTimeout >= 0 { ctx, cancel = context.WithTimeout(ctx, dp.dialTimeout()) } dst, err := dp.dialContext()(ctx, "tcp", dp.Addr)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The comment reads:
// If zero, a default is used.
The source says:
if zero, the timeout is disabled
The text was updated successfully, but these errors were encountered: