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

Fix context timeout #142

Merged
merged 3 commits into from
Jan 22, 2024
Merged

Fix context timeout #142

merged 3 commits into from
Jan 22, 2024

Conversation

rkodev
Copy link
Contributor

@rkodev rkodev commented Jan 22, 2024

Fixes a bug where 0 value in the httpClient.Timeout refers to no timeout while a 0 value for http context.WithTimeout refers to 0 seconds to timeout.

Prevent propagation of the default client timeout to the the context timeout when no client timeout is set

Resolves #76

Copy link
Contributor

This pull request has conflicting changes, the author must resolve the conflicts before this pull request can be merged.

Copy link
Contributor

Conflicts have been resolved. A maintainer will take a look shortly.

@baywet baywet enabled auto-merge January 22, 2024 14:57
Copy link

sonarcloud bot commented Jan 22, 2024

@baywet baywet merged commit 1430a26 into main Jan 22, 2024
8 checks passed
@baywet baywet deleted the fix/context-timeout branch January 22, 2024 15:00
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.

Setting infinite context timeout
2 participants