Skip to content

bpo-31904: Increase LOOPBACK_TIMEOUT to 10 for VxWorks RTOS #19447

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

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

pxinwr
Copy link
Contributor

@pxinwr pxinwr commented Apr 9, 2020

VxWorks might run on some low-performance board. If TLS is enabled with ftp, it needs bigger LOOPBACK_TIMEOUT value. Otherwise, some test cases under test.test_ftplib.TestTLS_FTPClassMixin will fail. The value 10 is enough to prevent test failure.

https://bugs.python.org/issue31904

Copy link

@JimJJewett JimJJewett left a comment

Choose a reason for hiding this comment

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

It looks a bit odd to see:

LOOPBACK_TIMEOUT = 10

elif sys.platform == 'vxworks':
LOOPBACK_TIMEOUT = 10

but I suppose adding an OR after the existing AND condition would also be awkward. I'll leave it to your (or someone else's) judgment.

(Especially) if you are going to keep it a separate clause, I would like to see a comment explaining why. For instance, "vxworks is used on embedded devices, and some boards are quite slow; avoid false alarms"

@JimJJewett
Copy link

Two comments, but it is possible they will lead to no change, and likely they will lead to nothing bigger than a comment. Consider this a positive review for triage/commit purposes.

@pxinwr pxinwr deleted the fix-issue-31904-testftplib branch July 29, 2020 10:53
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 4, 2020
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 20, 2020
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
@kuhlenough kuhlenough mannequin mentioned this pull request Jan 12, 2024
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

Successfully merging this pull request may close these issues.

5 participants