Kyle Stanley <aeros...@gmail.com> added the comment:

> The exception should probably be just ignored.

It looks like the "ERROR_NETNAME_DELETED" (win32 error 64) exception is already 
ignored in multiprocessing's connection.wait(): 
https://github.com/python/cpython/blob/bccacd19fa7b56dcf2fbfab15992b6b94ab6666b/Lib/multiprocessing/connection.py#L857.
 Would it be appropriate to ignore it here as well?

I think that we should still retain the ConnectionResetError for 
"ERROR_OPERATION_ABORTED", but just specifically ignore 
"ERROR_NETNAME_DELETED". Ignoring "ERROR_OPERATION_ABORTED" doesn't seem 
correct here since it's relied on for cancelling file I/O (see 
https://docs.microsoft.com/en-us/windows/win32/fileio/canceling-pending-i-o-operations).

The patch should be straightforward. I'll test it locally and then open a PR, 
unless Andrew is currently working on it.

----------
nosy: +aeros

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38856>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to