Skip to content

[3.5] bpo-30199: test_ssl closes all asyncore channels (#1381)#1389

Merged
vstinner merged 1 commit into
python:3.5from
vstinner:ssl_35
May 2, 2017
Merged

[3.5] bpo-30199: test_ssl closes all asyncore channels (#1381)#1389
vstinner merged 1 commit into
python:3.5from
vstinner:ssl_35

Conversation

@vstinner

@vstinner vstinner commented May 2, 2017

Copy link
Copy Markdown
Member

AsyncoreEchoServer of test_ssl now calls
asyncore.close_all(ignore_all=True) to ensure that
asyncore.socket_map is cleared once the test completes, even if
ConnectionHandler was not correctly unregistered.

Fix the following warning:

Warning -- asyncore.socket_map was modified by test_ssl
Before: {}
After: {6: <test.test_ssl.AsyncoreEchoServer.EchoServer.ConnectionHandler>}
(cherry picked from commit 1dae745)

AsyncoreEchoServer of test_ssl now calls
asyncore.close_all(ignore_all=True) to ensure that
asyncore.socket_map is cleared once the test completes, even if
ConnectionHandler was not correctly unregistered.

Fix the following warning:

Warning -- asyncore.socket_map was modified by test_ssl
  Before: {}
  After:  {6: <test.test_ssl.AsyncoreEchoServer.EchoServer.ConnectionHandler>}
(cherry picked from commit 1dae745)
@vstinner vstinner merged commit 89a54c7 into python:3.5 May 2, 2017
@vstinner vstinner deleted the ssl_35 branch May 2, 2017 14:48
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.

2 participants