Skip to content
New issue

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

Remove incorrect usage of KeepAlive in DialContext #1009

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

jkaflik
Copy link
Contributor

@jkaflik jkaflik commented Jun 6, 2023

Given the KeepAlive implementation comment:

	// KeepAlive specifies the interval between keep-alive
	// probes for an active network connection.
	// If zero, keep-alive probes are sent with a default value
	// (currently 15 seconds), if supported by the protocol and operating
	// system. Network protocols or operating systems that do
	// not support keep-alives ignore this field.
	// If negative, keep-alive probes are disabled.

having KeepAlive value set to opt.ConnMaxLifetime makes TCP connections broken.

@jkaflik jkaflik added the bug label Jun 6, 2023
@jkaflik jkaflik self-assigned this Jun 6, 2023
@jkaflik jkaflik merged commit 6ba87b2 into main Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant