Skip to content

dial: Connect() does not cancel by context if no i/o #443

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

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

oleg-jukovec
Copy link
Collaborator

NetDialer, GreetingDialer, AuthDialer and ProtocolDialer may not cancel Dial() on context expiration when network connection hangs.

The issue occurred because context wasn't properly handled during network I/O operations, potentially causing infinite waiting.

Part of TNTP-2018

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/tntp-2018-pool-parallel-connect branch from 6a86ac4 to 30e6c3c Compare April 10, 2025 07:38
@patapenka-alexey
Copy link

Please add # in commit message.
Part of **#**TNTP-2018

Verified

This commit was signed with the committer’s verified signature.
oleg-jukovec Oleg Jukovec
NetDialer, GreetingDialer, AuthDialer and ProtocolDialer may not
cancel Dial() on context expiration when network connection hangs.

The issue occurred because context wasn't properly handled during
network I/O operations, potentially causing infinite waiting.

Part of #TNTP-2018
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/tntp-2018-pool-parallel-connect branch from 30e6c3c to 4398fff Compare April 10, 2025 09:56
@oleg-jukovec
Copy link
Collaborator Author

Please add # in commit message. Part of **#**TNTP-2018

Added.

@oleg-jukovec oleg-jukovec merged commit 07ea1d1 into master Apr 10, 2025
26 checks passed
@oleg-jukovec oleg-jukovec deleted the oleg-jukovec/tntp-2018-pool-parallel-connect branch April 10, 2025 11:56
@oleg-jukovec oleg-jukovec mentioned this pull request Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants