Bug 3374 - Test login-timeout fails nonedeterministically
Summary: Test login-timeout fails nonedeterministically
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Regression tests (show other bugs)
Version: 8.8p1
Hardware: amd64 Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-15 15:16 AEDT by Rose Kunkel
Modified: 2021-12-15 15:16 AEDT (History)
0 users

See Also:


Attachments
Patch to increase the wait time to 20s (779 bytes, patch)
2021-12-15 15:16 AEDT, Rose Kunkel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rose Kunkel 2021-12-15 15:16:38 AEDT
Created attachment 3558 [details]
Patch to increase the wait time to 20s

Running the test login-timeout.sh on my machine sometimes fails and sometimes passes. There seems to be some variance in how long it takes sshd to disconnect a client after it has timed out, and as a result the second client sometimes attempts to connect before the first client has been disconnected, which fails. Changing the wait time between the first and second connections from 15 to 20 seconds makes the test pass consistently. I've attached a patch making this change, but there may be an underlying issue in sshd that needs to be fixed instead. I'm happy to provide logs/system information/etc if that would be helpful.