Skip to content

Timeouts not working? #43

Answered by webknjaz
f11r asked this question in Q&A
Discussion options

You must be logged in to vote

timeout is a socket-level timeout, for all the cases, please consult with socket documentation.
shutdown_timeout is time Cheroot waits to forcibly shut down the socket if its still alive after sending _SHUTDOWNREQUEST to corresponding threads.
accepted_queue_timeout is time during which the incoming request must be put into request queue (which would happen if the queue is not full).

Regarding your wish to terminate request processing after timeout, I'd say its nearly impossible:

  1. Requests are being processed within threads, and threads are unkillable (there are some hacks, but you'll likely end up with a dead lock if you try those)
  2. CherryPy has this concept of the TimeoutMonitor, which i…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by webknjaz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #43 on September 17, 2020 23:45.