Skip to content

Rework connection timeout tests - #270

Closed
JayH5 wants to merge 1 commit into
masterfrom
jh/connect-timeout-test
Closed

JayH5 wants to merge 1 commit into
masterfrom
jh/connect-timeout-test

Conversation

@JayH5

@JayH5 JayH5 commented Feb 7, 2021

Copy link
Copy Markdown
Contributor

These tests are currently broken on master. They also don't really seem to be tests for connection timeouts, rather for the behaviour when trying to connect using SSL to a server that wasn't using SSL. This behaviour used to be a connection timeout, but now (at least on Python 3.7+) is an SSL error. I'm not sure what changed to cause this to happen (possibly different OpenSSL version?) but it would be good to know.

Change the test_connection_timeout_tcp test to attempt to connect to a server port that is bound but not listening/accepting connections.

Remove the test_connection_timeout_uds test because as far as I can tell there isn't really a way to cause a timeout here (connect returns immediately with either success or failure on any bound Unix socket).

Not super sure about the naming of things here...

@JayH5
JayH5 marked this pull request as draft February 7, 2021 12:40
@JayH5

JayH5 commented Feb 7, 2021

Copy link
Copy Markdown
Contributor Author

😞 having trouble reproducing test failures locally.. may be a macOS vs Linux thing.

@JayH5

JayH5 commented Feb 7, 2021

Copy link
Copy Markdown
Contributor Author

Yep, this approach works on macOS but not Linux.

@JayH5 JayH5 closed this Feb 7, 2021
@florimondmanca
florimondmanca deleted the jh/connect-timeout-test branch March 12, 2021 12:02
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.

1 participant