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

Diconnecting keepalive after BadSessionNotActivated and BadSessionIdInvalid ReadResponses #2790

Open
ChristianGrabmann opened this issue Oct 9, 2024 · 5 comments
Labels
Pending Feedback Pending on further feedbacks or clarification from person who create the issue.

Comments

@ChristianGrabmann
Copy link

          Hi, we faced the same issue after updating from 1.4.371.96 to 1.5.374.36

After some time we had the same problem as JeremyMahieu (see top)
With 1.4.371.96 we had no problems.

Does anyone have any ideas, if there were changes in the software which could cause this behaviour?

Originally posted by @ChristianGrabmann in #1207 (comment)

@ChristianGrabmann ChristianGrabmann changed the title Diconnecting keepalive after BadSessionNotActivated and BadSessionIdInvalid ReadResponsesHi, we faced the same issue after updating from 1.4.371.96 to 1.5.374.36 Diconnecting keepalive after BadSessionNotActivated and BadSessionIdInvalid ReadResponses Oct 9, 2024
@mregen
Copy link
Contributor

mregen commented Oct 10, 2024

@ChristianGrabmann, there were many improvements in the client keep alive. Have you tried to increase the SessionTimeout?

@mregen mregen added the Pending Feedback Pending on further feedbacks or clarification from person who create the issue. label Oct 10, 2024
@ChristianGrabmann
Copy link
Author

Our Session Keep Alive (Client) ist set to 610000

.SetDefaultSessionTimeout(610000)
.SetMinSubscriptionLifetime(11000)

To what value should we increase?

@ChristianGrabmann
Copy link
Author

@mregen

@mregen
Copy link
Contributor

mregen commented Oct 11, 2024

Hi @ChristianGrabmann,
in general good settings for timeouts:

SessionTimeout: 30 or 60 seconds
Session KeepAlive: 5 seconds
SubscriptionLifetime: 300 seconds
SubscriptionLifetime should be > Session timeout, or subscriptions may disappear even if the session remains connected.
A session can reconnect to subscriptions, so the subscription lifetime can be considerably larger.

@ChristianGrabmann
Copy link
Author

Ok, Thanks.
That means, that our subscription Lifetime is wrong, shoul be changed to 300 Seconds and Session Timeout should get changed to 60 Seconds. We will try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending Feedback Pending on further feedbacks or clarification from person who create the issue.
Projects
None yet
Development

No branches or pull requests

2 participants