nghttp2 icon indicating copy to clipboard operation
nghttp2 copied to clipboard

Pause http connection on long running blocking requests to make server continue serving other requests

Open micheleselea opened this issue 5 years ago • 0 comments

Hi all, I have my libevent-server that runs monothread event server. If I have a request that need a long blocking operation to complete I can make it in a separate thread. In this scenario what have I to return from on_frame_recv_callback in order to make request wait until I signal the data ready? what do you think is the best way to do such long request? The purpose is to use one thread server for all requests and make some long running request running in it's own thread before reply

micheleselea avatar Nov 18 '20 07:11 micheleselea