Aug-12-2018, 08:46 AM
What is select.select(rlist, (), (), timeout) doing as far as "waiting" for socket data using asyncio?
My end goal here is to remove the need for select.select as this should speed up my code and offer a little more scalability from what I am reading. I am running this on windows so we don't have the option to use epoll sadly.
Right now I am using loop = asyncio.ProactorEventLoop() for my loop as well for the networking half.
As far as code - I am not sure where to even start here with this to recreate something similar or a way around it.
My end goal here is to remove the need for select.select as this should speed up my code and offer a little more scalability from what I am reading. I am running this on windows so we don't have the option to use epoll sadly.
Right now I am using loop = asyncio.ProactorEventLoop() for my loop as well for the networking half.
As far as code - I am not sure where to even start here with this to recreate something similar or a way around it.
return [ conn for conn in rlist if isinstance(conn, SSL.Connection) and conn.pending() > 0 ] or select.select(rlist, (), (), timeout)[0]