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

2.x/3.x: Support ability to timeout idle connections #9163

Closed
barchetta opened this issue Aug 19, 2024 · 7 comments
Closed

2.x/3.x: Support ability to timeout idle connections #9163

barchetta opened this issue Aug 19, 2024 · 7 comments
Assignees
Labels
2.x Issues for 2.x version branch 3.x Issues for 3.x version branch enhancement New feature or request P2 webserver

Comments

@barchetta
Copy link
Member

Environment Details

  • Helidon Version: 2.6.7
  • Helidon SE

Problem Description

In Helidon 4 the WebServer supports idle-connection-timeout that controls how long it should wait before closing a connection that has no traffic on it.

Helidon 2 and 3 (which are Netty based) do not appear to have such capability. To implement this might require using Netty's IdleStateHandler

@barchetta barchetta added enhancement New feature or request webserver 2.x Issues for 2.x version branch 3.x Issues for 3.x version branch labels Aug 19, 2024
@ggsrivas
Copy link

HI Team,
We are facing this issue on our service. The open socket count keeps going up and stops accepting new connection in 7-8 days. We are forced to restart the service to clean those open connections. This is affecting our customer as the API as inaccessible when this happens. Any ETA for this fix?

@spericas
Copy link
Member

Fixed in 2.x and 3.x

@ggsrivas
Copy link

@spericas should we expect a 2.6.9 release soon with this fix? I don't see that tag on Github.

@spericas
Copy link
Member

@spericas should we expect a 2.6.9 release soon with this fix? I don't see that tag on Github.

@barchetta ?

@barchetta
Copy link
Member Author

barchetta commented Aug 27, 2024

@ggsrivas It will be soon, but I do not have an ETA at the moment. I am making a build change so that we can produce a 2.6.9-SNAPSHOT build that you can test with. I will notify you once that is ready.

@spericas
Copy link
Member

@ggsrivas It will be soon, but I do not have an ETA at the moment. I am making a build change so that we can produce a 2.6.9-SNAPSHOT build that you can test with. I will notify you once that is ready.

That's actually a great idea, trying out a SNAPSHOT version to verify this works in your environment.

@barchetta
Copy link
Member Author

@ggsrivas 2.6.9-SNAPSHOT with the fix is available at: https://oss.sonatype.org/content/repositories/snapshots/io/helidon/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issues for 2.x version branch 3.x Issues for 3.x version branch enhancement New feature or request P2 webserver
Projects
Archived in project
Development

No branches or pull requests

3 participants