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

TimeoutError on connect via SSL #151

Open
the-moog opened this issue Nov 3, 2019 · 4 comments
Open

TimeoutError on connect via SSL #151

the-moog opened this issue Nov 3, 2019 · 4 comments

Comments

@the-moog
Copy link

the-moog commented Nov 3, 2019

See https://stackoverflow.com/questions/58684677

I can connect to Zeo server using ssl and pure Python3, but ZEO.client() always fails.

I get a TimeoutError, but I think the underlying ZEO mechanisms are hiding the true error which I think is coming from ssl.

Is there a way to increate the debug log level?

@d-maurer
Copy link
Contributor

d-maurer commented Nov 4, 2019 via email

@the-moog
Copy link
Author

the-moog commented Nov 4, 2019

Can you give an example?
I can't find any such env reading in the code, the only env that looks possible is in _forker.py, ZEO_TEST_SERVER_DEBUG. Tried setting that to 1 with no effect. I'll see if I can add some more debugging, but it seems sadly ssl itself lacks debug features.

@d-maurer
Copy link
Contributor

d-maurer commented Nov 4, 2019 via email

@the-moog
Copy link
Author

I've added code to properly turn on debugging. (By adding an env variable ZEODEBUG, and modifying the code)
I've also created a simple asyncio client. Uses exactly the same loop.create_connection() call.

simple ssl client - works
simple asyncio client - works
ZEOClient - still fails

On the server, with ZEOClient, I see what looks like self referencing code.

I get StartingServer...AcceptingConnection, then the same but twice, then three times, all in rapid succession.

Conclusion: I don't think it's SSL. Either the client or server is retrying when it has already succeeded. Eventually an async timer kills off connection attempts kicks in.

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

No branches or pull requests

2 participants