Skip to content

socket.timeout: timed out #2092

Discussion options

You must be logged in to vote
  1. The maximum number of threads is determined by the RAM that you have and the needs of your application. This is the same as with greenlets under eventlet/gevent. You were using 25K which seems unrealistically high.
  2. gevent also provides monkey patching. Wether you need it or not depends on your application, same as with eventlet.
  3. The ping timeout has nothing to do with anything and should normally be left alone. A sleep(0) helps to achieve concurrency in CPU heavy code when using gevent or eventlet. Sleeping under threading is not necessary.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@huwaizatahir2
Comment options

@miguelgrinberg
Comment options

Answer selected by huwaizatahir2
@huwaizatahir2
Comment options

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 #2091 on September 18, 2024 11:08.