[issue21119] asyncio create_connection resource warning

2014-04-06 Thread Lars Andersson

Lars Andersson added the comment:

Thanks Victor, that fixes my problem.

I've started using tulip/master as part of my project as that also solves other 
issues I have with the default asyncio of python 3.4.0, but hopefully this fix 
will into tulip/master as well as python 3.4.1 / 3.5.

--
resolution:  - works for me

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



[issue21119] asyncio create_connection resource warning

2014-03-31 Thread Lars Andersson

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 rep...@bugs.python.org
http://bugs.python.org/issue21119
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com