Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.7] Revert "bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)"#13328

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:3.7fromvstinner:revert_asyncio_ssl37
May 14, 2019
Merged

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedMay 14, 2019
edited by bedevere-bot
Loading

@vstinnervstinner changed the titleRevert "bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)"[3.7] Revert "bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport (GH-13098)"May 14, 2019
@vstinner
Copy link
MemberAuthor

The revert is motivated byhttps://bugs.python.org/issue36870 : test_asyncio fails randomly which causes a lot of pain in the Python CI and the Python workflow. See:
https://bugs.python.org/issue36870#msg342509

@asvetlov
Copy link
Contributor

asvetlov commentedMay 14, 2019
edited
Loading

I guess the reversion PR should be backported to 3.7 as well

UPD.
Sorry, I mean master.

This PR is a reversion for#13176 on 3.7
#13098 should be reverted on the master too

@vstinner
Copy link
MemberAuthor

I guess the reversion PR should be backported to 3.7 as well

This revert is for Python 3.7.

@asvetlov
Copy link
Contributor

Sorry, I mean the same code should be reverted on the master too

@vstinner
Copy link
MemberAuthor

Without this change, I easily reproduce the failure on Windows:

vstinner@WIN C:\vstinner\python\3.7>python -m test test_asyncio -m test_drain_raises -v(...)test_drain_raises (test.test_asyncio.test_streams.StreamTests) ... Warning -- threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 2)     Dangling thread: <Thread(Thread-1, stopped daemon 1568)>Dangling thread: <_MainThread(MainThread, started 1244)>ERROR======================================================================ERROR: test_drain_raises (test.test_asyncio.test_streams.StreamTests)----------------------------------------------------------------------Traceback (most recent call last):  File "C:\vstinner\python\3.7\lib\test\test_asyncio\test_streams.py", line 820, in test_drain_raises    self.loop.run_until_complete(client(*addr))  File "C:\vstinner\python\3.7\lib\asyncio\base_events.py", line 584, in run_until_complete    return future.result()  File "C:\vstinner\python\3.7\lib\test\test_asyncio\test_streams.py", line 810, in client    await writer.drain()  File "C:\vstinner\python\3.7\lib\asyncio\streams.py", line 351, in drain    await fut  File "C:\vstinner\python\3.7\lib\asyncio\selector_events.py", line 860, in write    n = self._sock.send(data)ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine(...)

With this change, the test pass as expected:

vstinner@WIN C:\vstinner\python\3.7>python -m test test_asyncio -m test_drain_raises -v(...)test_drain_raises (test.test_asyncio.test_streams.StreamTests) ... ok(...)Tests result: SUCCESS

@vstinnervstinner merged commitc647ad9 intopython:3.7May 14, 2019
@vstinnervstinner deleted the revert_asyncio_ssl37 branchMay 14, 2019 20:30
@asvetlov
Copy link
Contributor

Cool!
Sorry for making troubles :(

@vstinner
Copy link
MemberAuthor

Sorry, I mean the same code should be reverted on the master too

Well, I don't know yet if PR#13313 fixedhttps://bugs.python.org/issue36870 on master. Anyway, I created PR#13329 for master.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@asvetlovasvetlovasvetlov approved these changes

@1st11st1Awaiting requested review from 1st11st1 is a code owner

@gpsheadgpsheadAwaiting requested review from gpsheadgpshead is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@vstinner@asvetlov@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp