[cheroot==8.1.0 regression] Spin on Linux when socket filedescriptor is too big for select
See original GitHub issueOnce the filedescriptor for a socket used by cherrypy has a value greater than 1024 a thread goes in to a loop just writing blocks like the following to stderr:
[22/Nov/2019:11:55:07] ENGINE Error in HTTPServer.tick
Traceback (most recent call last):
File "/usr/lib/python3.6/dist-packages/cheroot/server.py", line 1770, in serve
self.tick()
File "/usr/lib/python3.6/dist-packages/cheroot/server.py", line 1993, in tick
conn = self.connections.get_conn(self.socket)
File "/usr/lib/python3.6/dist-packages/cheroot/connections.py", line 142, in get_conn
rlist, _, _ = select.select(list(socket_dict), [], [], 0.1)
ValueError: filedescriptor out of range in select()
This does not happen with cheroot versions prior to 8.1.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:20 (16 by maintainers)
Top Results From Across the Web
File descriptors too large for select, limiting - IBM
This technote discusses how to resolve the error, file descriptors too large for select, limiting, when using IBM® Rational® ClearCase® on UNIX® ...
Read more >How to deal with high file descriptor usage due to orphaned ...
You're experiencing high file descriptor usage on a linux machine which is running a mule ... SocketException: Too many open files (java.util.concurrent.
Read more >Package List — Spack 0.17.2 documentation
Designed for programmers with large heterogeneous trees of source code, ack is written purely in portable Perl 5 and takes advantage of the...
Read more >Meaning of adding 1 on socket file descriptor in select function ...
The first parameter of select is the number of file descriptors to considere: The nfds argument specifies the range of descriptors to be...
Read more >File Descriptor Transfer over Unix Domain Sockets
We leverage the following Linux kernel features to achieve this: CMSG: A feature in sendmsg() allows sending control messages between local ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Looks like #301 fix is close to be mergeable, everyone is welcome to test it before I merge it.
@webknjaz I’ve submitted a reproduction of this bug as PR #301
You can see the error reproduced in the Travis logs here