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

Minor timeout changes #260

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Minor timeout changes #260

merged 1 commit into from
Sep 18, 2023

Conversation

RedProkofiev
Copy link
Contributor

@RedProkofiev RedProkofiev commented Sep 18, 2023

Resolves #243
Resolves GT-200

Adding timeouts to resolve issue #243 - currently set to 10 second timeouts.

Difficult to consistently unit test for, so manual testing was done by blocking the TCP connection through TCPKill and sending Fallocate-d 512kb messages through and watching the TCP traffic. Timeouts successfully call the underlying requests library, and no longer indefinitely looks for a connection. Tested on a scientific Linux 7 distro running python 3.6.8 and 2.7.5.

@RedProkofiev RedProkofiev requested a review from a team as a code owner September 18, 2023 09:05
@tofu-rocketry tofu-rocketry self-assigned this Sep 18, 2023
@tofu-rocketry tofu-rocketry added this to the 3.3.1 milestone Sep 18, 2023
@RedProkofiev
Copy link
Contributor Author

image
Output from running a few different concurrent tests to check if timeout was active.

Copy link
Member

@tofu-rocketry tofu-rocketry left a comment

Choose a reason for hiding this comment

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

Code changes look good. Could you squash the commits and improve the commit message about the timeout? The "why" of the change is the important bit.

Add timeout to prevent TCP spinlocks
@tofu-rocketry tofu-rocketry merged commit 2034e65 into apel:dev Sep 18, 2023
@RedProkofiev RedProkofiev deleted the nick-dev branch September 18, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

No timeout on AMS connections (ssmsend hangs indefinitely)
2 participants