-
Hi, I am new to uWebSockets and I have a use case where I need to make a http-request (using cURL) to another server. If I use a blocking cURL call, should it respond within the HTTP_TIMEOUT_S limit? And for my understanding: how does the Loop handle a blocking situation? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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.