Welcome! Log In Create A New Profile

Advanced

Seeking example of module using theadpool

March 01, 2021 04:07AM
Hello,

I have developed a module which perform long running calculations to produce the output, unfortunately blocking the server thread from handling other requests. I am looking at using threadpool, unfortunately there is no example of using threadpool with module that I could find.

I am using src/http/modules/ngx_http_image_filter_module.c as a base for my code.

How would you modify such module to perform the image processing in background threads ?

Best regards and thanks in advance,
Subject Author Posted

Seeking example of module using theadpool

dvhh March 01, 2021 04:07AM

Re: Seeking example of module using theadpool

Vladimir Homutov March 01, 2021 04:26AM

Re: Seeking example of module using theadpool

dvhh March 01, 2021 09:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 168
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready