Skip to content

How to handle long blocking calls? #1228

Answered by ibsusu
hakoptak asked this question in Q&A
Discussion options

You must be logged in to vote

You should use the non-blocking version. There is a way to reuse the event loop that uWebSockets depends on but I don't know what way would fit your project. There are examples on the curl website for utilizing epoll or libuv, I suggest following them then integrating them somehow.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hakoptak
Comment options

Answer selected by hakoptak
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