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

Session create fix #43

Merged
merged 3 commits into from
Dec 14, 2023
Merged

Session create fix #43

merged 3 commits into from
Dec 14, 2023

Conversation

XmasApple
Copy link
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Please check the type of change your PR introduces:

  • Bugfix

What is the current behavior?

Sometimes a session creation timeout can occur and there is no way to change timeout for session creation

Issue: #7

@XmasApple XmasApple added the enhancement New feature or request label Sep 28, 2023
@XmasApple XmasApple self-assigned this Sep 28, 2023
@XmasApple XmasApple linked an issue Sep 28, 2023 that may be closed by this pull request
const int maxAttempts = 100;

GetSessionResponse getSessionResponse = null!;
for (var attempt = 0; attempt < maxAttempts; attempt++)
Copy link
Member

Choose a reason for hiding this comment

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

Better to use timeout instead of attempts and need pause between attemps. it need some time to repair the situation (create session, return idle session to the pool, ...)

@XmasApple XmasApple marked this pull request as draft October 10, 2023 18:52
@XmasApple XmasApple marked this pull request as ready for review November 21, 2023 11:45
@rekby rekby merged commit f09a8fe into main Dec 14, 2023
14 checks passed
@rekby rekby deleted the GetSessionRetry branch December 14, 2023 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ClientTransferTimeoutException without additional information
2 participants