Python Forum
asyncio Queue implementation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
asyncio Queue implementation
#3
Quote:Apparently asyncio Queues use a Linux pipe and each queue require 2 file descriptors.

You made the wrong assumption. The Queue class does not open file, nor sockets.
Lib/asyncio/queues.py

I guess your problem with reaching the file descriptor limit comes from the socket creation for new network connections.
If you don't limit the simultaneous connections in your program, then this problem could happen.
The Queue object does use a deque instance for the queue. This lives in memory. There is no requirement for a pipe to communicate.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
asyncio Queue implementation - by sentieri - Sep-16-2020, 04:44 PM
RE: asyncio Queue implementation - by buran - Sep-16-2020, 05:30 PM
RE: asyncio Queue implementation - by DeaD_EyE - Sep-16-2020, 07:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Distributed size limited queue implementation? johsmi96 1 1,968 May-08-2019, 07:29 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

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