-
Notifications
You must be signed in to change notification settings - Fork 19
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
Comments
the-moog wrote at 2019-11-3 13:19 -0800:
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?
I had a similar problem with some ZEO tests. Those tests could be
controlled via an envvar to log at debug level. Maybe, you look
in the ZEO test suite to find out how this works and use the same
mechanism for the analysis of your case.
The ZEO test issue has been caused by certificates without the CA extension.
Maybe, your certificate has the same problem.
|
Can you give an example? |
the-moog wrote at 2019-11-4 10:13 -0800:
Can you give an example?
No.
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.
The idea is to find the places where this envvar's value is used to
change something. Then ensure that in your setup similar changes
become effective.
but it seems sadly ssl itself lacks debug features.
You should at least get a more precise error information. This may
give a clue regarding the problem cause.
|
I've added code to properly turn on debugging. (By adding an env variable ZEODEBUG, and modifying the code) simple ssl client - works 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. |
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?
The text was updated successfully, but these errors were encountered: