[issue21119] asyncio create_connection resource warning

Lars Andersson report at bugs.python.org
Tue Apr 1 05:04:44 CEST 2014


New submission from Lars Andersson:

The attached code generates an unclosed socket ResourceWarning when timing out trying to connect to an unreachable address.

Probably not terribly serious, but in my case, it generates distracting warnings during unit testing.

I have looked briefly at the asyncio code but it's not immediately obvious to me how to fix it.

----------
components: Library (Lib)
files: timeout.py
messages: 215291
nosy: landersson
priority: normal
severity: normal
status: open
title: asyncio create_connection resource warning
type: resource usage
versions: Python 3.4
Added file: http://bugs.python.org/file34689/timeout.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21119>
_______________________________________


More information about the Python-bugs-list mailing list