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

Copy timeouts from a via backend if undefined for the destination #4106

Merged
merged 1 commit into from
May 27, 2024

Conversation

nigoroll
Copy link
Member

Inherit the three backend timeouts from a proxy if not defined for the destination.

TODO before merge if otherwise accepted: changes.rst, documentation

Copy link
Member Author

@nigoroll nigoroll left a comment

Choose a reason for hiding this comment

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

Also: document

#define CPTMO(a, b, x) do { \
if ((a)->x < 0.0 || isnan((a)->x)) \
(a)->x = (b)->x; \
} while(0)
Copy link
Member Author

Choose a reason for hiding this comment

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

bugwash: should have a blank line here

note: use of isnan() is for forward compatibility, at the moment, we use
-1 to denone NAN for backends.
@nigoroll nigoroll merged commit 6d1ea03 into varnishcache:master May 27, 2024
1 check passed
@nigoroll nigoroll deleted the via_inherit_timeouts branch May 27, 2024 15:53
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

1 participant