Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Asyncio select.select
#1
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.

    return [
        conn for conn in rlist
        if isinstance(conn, SSL.Connection) and conn.pending() > 0
    ] or select.select(rlist, (), (), timeout)[0]
Reply


Messages In This Thread
Asyncio select.select - by Mradr - Aug-12-2018, 08:46 AM
RE: Asyncio select.select - by Larz60+ - Aug-12-2018, 10:48 AM
RE: Asyncio select.select - by Mradr - Aug-12-2018, 01:42 PM
RE: Asyncio select.select - by Larz60+ - Aug-12-2018, 02:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Select of connections Gupi 1 2,095 Jun-04-2019, 09:32 AM
Last Post: Gupi

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020