Skip to content

Conversation

@michael-grunder
Copy link
Collaborator

This commit adds logic to retry our poll call when waiting for the connection to complete, in the event that we are interrupted by a signal.

Additionally we do some simple bookkeeping to keep track of the overall timeout specified by the user.

Fixes #1206

This commit adds logic to retry our poll call when waiting for the
connection to complete, in the event that we are interrupted by a
signal.

Additionally we do some simple bookkeeping to keep track of the overall
timeout specified by the user.

Fixes #1206
@michael-grunder
Copy link
Collaborator Author

cc @yossigo

Part of me thinks this is overkill but OTOH it seems like a good idea to respect the users's total requested connection timeout in the context of an interrupted sycall.

@michael-grunder michael-grunder requested a review from yossigo July 19, 2023 17:42
Copy link
Member

@yossigo yossigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michael-grunder LGTM. I agree this is somewhat overkill but I think it's the best way to handle it given the constraints of current API and our desire to minimize breaking changes. I think we should clearly document this behavior change, by the way.

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.

EINTR on connect.

3 participants