babelouest / ulfius

Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create websocket services
https://babelouest.github.io/ulfius
GNU Lesser General Public License v2.1
1.07k stars 183 forks source link

multithreading support in ulfius #190

Closed ashishsaxenahsc closed 3 years ago

ashishsaxenahsc commented 3 years ago

Hi @babelouest,

I have a query regarding REST server implementation in ulfius. Does it implement multithreading and for each connection a new thread is spawned that will handle the new connection request ?

Thanks and Regards, Ashish

babelouest commented 3 years ago

Hello @ashishsaxenahsc ,

By default, ulfius opens a new thread for each incoming connection, the thread is closed when the connection is finished.

If you want more control over the client connection management, you can use ulfius_start_framework_with_mhd_options detailed in the documentation.

babelouest commented 3 years ago

Any feedback @ashishsaxenahsc ?

ashishsaxenahsc commented 3 years ago

Hi @babelouest,

Thanks for your reply. We just wanted to know about the multithreading implementation in ulfius. Thanks for the clarification.

Regards, Ashish