Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[cheroot==8.1.0 regression] Spin on Linux when socket filedescriptor is too big for select

See original GitHub issue

Once 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/", line 1770, in serve
  File "/usr/lib/python3.6/dist-packages/cheroot/", line 1993, in tick
    conn = self.connections.get_conn(self.socket)
  File "/usr/lib/python3.6/dist-packages/cheroot/", line 142, in get_conn
    rlist, _, _ =, [], [], 0.1)
ValueError: filedescriptor out of range in select()

This does not happen with cheroot versions prior to 8.1.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:20 (16 by maintainers)

github_iconTop GitHub Comments

webknjazcommented, Jul 20, 2020

Looks like #301 fix is close to be mergeable, everyone is welcome to test it before I merge it.

tommilligancommented, Jul 17, 2020

@webknjaz I’ve submitted a reproduction of this bug as PR #301

You can see the error reproduced in the Travis logs here

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found