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

Port forwarding session times out after 1min in Golang #83

Open
junze-smg opened this issue Nov 6, 2023 · 3 comments
Open

Port forwarding session times out after 1min in Golang #83

junze-smg opened this issue Nov 6, 2023 · 3 comments

Comments

@junze-smg
Copy link

Hi, I'm using the session package from session-manager-plugin in my internal tool, but the established data channel always gets terminated after 1min. According to the last comment in this issue here, it's due to the wrong KeepAlive setting of the mux. I tried it locally to modify the code as explained in that comment, the connection also stays as stated. Would you be able to double check this issue?

My agent version on the EC2 instance is 3.2.1705.0 and session-manager-plugin code version is the latest master dbfa0bf

@yuting-fan
Copy link
Contributor

When session-manager-plugin version is equal to or higher than 1.2.339.0 and SSM Agent version is equal to or higher than 3.1.1511.0, mux KeepAlive is disabled because the ping message to maintain KeepAlive would prevent idle session timeout or max session duration timeout.

Did you configure idle session timeout or max session duration? Did your server connect to the local port before the data channel was terminated?

@DBoroujerdi
Copy link

Hi @yuting-fan, I am also encountering this issue when using this package in an internal tool.

The only way to get around it is to vendor my deps and patch version.go, otherwise, the Version is 1.2.0.0 which is lower than 1.2.295.

Would it be possible to update this const to a var as it would mean users can use ldflags to set this?

@djselzlein
Copy link

Would there be update on this issue? I have been experiencing the same 1 minute time out problem.

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

No branches or pull requests

4 participants