Message323574
As far as our experiments show, the requests are blocking each other irrespective of thread pool size. Which is expected since the lock is global across threads.
Am I correct in assuming that an implementation for the ProactorEventLoop with IOCP would not require a global lock?
Here is our code, this takes 12 sec on Ubuntu and ~12*100 secs on Windows (cause a failed DNS request takes 10 sec):
import asyncio
futs = []
for i in range(100):
t = asyncio.get_event_loop().getaddrinfo("aa000000aa"+str(i)+".onion.", 80)
futs.append(t)
print(asyncio.get_event_loop().run_until_complete(asyncio.gather(*futs, return_exceptions=True))) |
|
Date |
User |
Action |
Args |
2018-08-15 17:38:52 | ysangkok+launchpad | set | recipients:
+ ysangkok+launchpad, asvetlov, yselivanov |
2018-08-15 17:38:52 | ysangkok+launchpad | set | messageid: <1534354732.89.0.56676864532.issue34411@psf.upfronthosting.co.za> |
2018-08-15 17:38:52 | ysangkok+launchpad | link | issue34411 messages |
2018-08-15 17:38:52 | ysangkok+launchpad | create | |
|