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

Add TCP Keep-Alive parameters to backend structs #537

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

ulyssa
Copy link
Contributor

@ulyssa ulyssa commented Aug 6, 2024

This adds the TCP keep-alive fields that the Fastly API currently accepts to the different backend structs. They won't work with Compute at the moment, but I believe they should be usable with Delivery.

Comment on lines 41 to 44
TcpKeepAliveEnable *bool `mapstructure:"tcp_keepalive_enable"`
TcpKeepAliveIntvl *int `mapstructure:"tcp_keepalive_interval"`
TcpKeepAliveProbes *int `mapstructure:"tcp_keepalive_probes"`
TcpKeepAliveTime *int `mapstructure:"tcp_keepalive_time"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

I've always used https://github.com/mgechev/revive for linting go-fastly for linting Fastly's Go projects, and there is the following rule that will trigger a warning...

https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#var-naming

Screenshot 2024-08-06 at 09 29 35

This applies to all references of Tcp.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 10cdc77!

@Integralist Integralist merged commit d88c10a into fastly:main Aug 6, 2024
2 checks passed
@ulyssa ulyssa deleted the ulyssa/tcp-ka branch August 6, 2024 16:58
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.

2 participants