Message254505
This code repros without aiohttp when pitted against the previously attached web server (again on OSX 10.11, mid-2012 MBPr).
Admittedly this may seem very arbitrary but I have better reasons in my production code for stopping an IOLoop and starting it again (which seems to be important to the reproduction steps).
import asyncio
loop = asyncio.get_event_loop()
def batch_open():
for i in range(100):
c = asyncio.ensure_future(asyncio.open_connection('127.0.0.1', 8080))
c.add_done_callback(on_resp)
def on_resp(task):
task.result()
loop.stop()
loop.call_soon(batch_open)
while True:
loop.run_forever() |
|
Date |
User |
Action |
Args |
2015-11-12 01:10:28 | Justin Mayfield | set | recipients:
+ Justin Mayfield, gvanrossum, vstinner, yselivanov, thehesiod |
2015-11-12 01:10:28 | Justin Mayfield | set | messageid: <1447290628.95.0.998122845808.issue25593@psf.upfronthosting.co.za> |
2015-11-12 01:10:28 | Justin Mayfield | link | issue25593 messages |
2015-11-12 01:10:28 | Justin Mayfield | create | |
|