[issue39758] StreamWriter.wait_closed() can hang indefinitely.

2022-03-03 Thread Kumar Aditya


Kumar Aditya  added the comment:

On main branch with rewritten SSL implementation GH-31275 bpo-44011, this 
raises TimeoutError:


opened
close started

Traceback (most recent call last):
  File "/workspaces/cpython/main.py", line 18, in 
asyncio.run(main())
^^^
  File "/workspaces/cpython/Lib/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
   ^
  File "/workspaces/cpython/Lib/asyncio/base_events.py", line 645, in 
run_until_complete
return future.result()
   ^^^
  File "/workspaces/cpython/main.py", line 14, in main
await writer.wait_closed()
^^
  File "/workspaces/cpython/Lib/asyncio/streams.py", line 344, in wait_closed
await self._protocol._get_close_waiter(self)

TimeoutError: SSL shutdown timed out


This issue has been fixed, it can be closed @asvetlov.

--
nosy: +kumaraditya303
type: performance -> behavior
versions:  -Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39758] StreamWriter.wait_closed() can hang indefinitely.

2021-09-01 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
components:  -Build, C API, Parser, Tests, email
nosy:  -pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39758] StreamWriter.wait_closed() can hang indefinitely.

2021-09-01 Thread Stanislav Beblo


Change by Stanislav Beblo :


--
components: +Build, C API, Parser, Tests, email
nosy: +barry, lys.nikolaou, pablogsal, r.david.murray
type: behavior -> performance
versions: +Python 3.10, Python 3.11 -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39758] StreamWriter.wait_closed() can hang indefinitely.

2021-09-01 Thread Artem


Artem  added the comment:

See this issue on 3.9.6
No SSL, but plain sockets.
This seems to appear when writer.write/writer.drain was cancelled, and 
writer.close/writer.wait_closed called after this.

--
nosy: +aeros, seer
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39758] StreamWriter.wait_closed() can hang indefinitely.

2021-02-24 Thread Russell Owen


Russell Owen  added the comment:

Regarding my previous comment: I have never seen this in Python 3.7 (though I 
see that this particular bug is listed as being present there) so it may be a 
different underlying issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39758] StreamWriter.wait_closed() can hang indefinitely.

2021-02-24 Thread Russell Owen


Russell Owen  added the comment:

I am also seeing this in Python 3.8.6. I am not using SSL, but am simply 
calling `await writer.wait_closed()` on an `asyncio.StreamWriter`. Sometimes it 
works quickly and sometimes it hangs indefinitely.

--
nosy: +r3owen

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39758] StreamWriter.wait_closed() can hang indefinitely.

2020-02-26 Thread Julien Palard


Julien Palard  added the comment:

Can reproduce in:

- 3.8.0
- 3.8.2
- 3.7.6

--
nosy: +mdk

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39758] StreamWriter.wait_closed() can hang indefinitely.

2020-02-26 Thread François Voron

Change by François Voron :


--
nosy: +François Voron
title: StreamWriter.wait_closed() can hang indefinately. -> 
StreamWriter.wait_closed() can hang indefinitely.

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com