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: Update TCP connection timeout to 30 seconds #94

Merged
merged 17 commits into from
Aug 21, 2023

Conversation

MikeGoldsmith
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith commented Aug 21, 2023

Which problem is this PR solving?

Old TCP stream were not being closed correctly. This was because the timeout was set to 24 hours which lead to the number of running go routine as we start multiple per open connection.

This PR updates the timeout so connections are flushed more frequently. T

Short description of the changes

  • Remove the close timeout config option
  • Sets connection timeout to 30 seconds
  • Updates the assembler to use FlushCloseOlderThan

How to verify that this has the expected result

Connections are now flushed and closed correctly which helps keep open go routines in check.

@MikeGoldsmith MikeGoldsmith added the type: bug Something isn't working label Aug 21, 2023
@MikeGoldsmith MikeGoldsmith changed the title Fix: Make flush work and clean up stale TCP streams fix: Make flush work and clean up stale TCP streams Aug 21, 2023
Base automatically changed from mike/cached-k8s to main August 21, 2023 16:40
@MikeGoldsmith MikeGoldsmith marked this pull request as ready for review August 21, 2023 16:44
@MikeGoldsmith MikeGoldsmith requested a review from a team August 21, 2023 16:44
@MikeGoldsmith MikeGoldsmith changed the title fix: Make flush work and clean up stale TCP streams fix: Update TCP connection timeout to 30 seconds and remove separate closeTimeout config option Aug 21, 2023
@MikeGoldsmith MikeGoldsmith changed the title fix: Update TCP connection timeout to 30 seconds and remove separate closeTimeout config option fix: Update TCP connection timeout to 30 seconds Aug 21, 2023
@JamieDanielson JamieDanielson merged commit 4e80c79 into main Aug 21, 2023
7 checks passed
@JamieDanielson JamieDanielson deleted the mike/stream-goroutine-creeping branch August 21, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: go routines explode
2 participants