Re: Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread isolomka
Thanks a lot, fix seems to be working fine. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279917,279927#msg-279927 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread isolomka
Thanks for the response. The main issue is that now request is closed before actual task is done in thread pool. How can I avoid that? It worked fine before the upgrade. What is correct thread pool usage in custom module in 1.14? Here is my request handler for reference: static ngx_int_t ngx_http

Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread isolomka
Hi, I have custom nginx module which uses thread pool to serve blocking synchronous calls to our library. It worked fine with nginx version 1.12.1. Now we've tried to upgrade nginx to latest 1.14 version and it seems thread pool is not working with that version. After some debugging we've found t

Re: Upstream module usage to process data

2017-05-31 Thread isolomka
So my design seems to be wrong. Thanks a lot for assistance. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274486,274548#msg-274548 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Upstream module usage to process data

2017-05-31 Thread isolomka
So I have my own module which is working with thread pool enabled. ngx_http_upstream_init is called from my thread_event_handler, flag r->aio is enabled. In fact, upstream is not initialized at all. When i set aio flag to false and call to ngx_http_upstream_init, i'm getting a core dump in ngx_ep

Re: Upstream module usage to process data

2017-05-31 Thread isolomka
Thanks for the answers. Does upstream works correctly with thread pool enabled? I see some strange validation in ngx_http_upstream_init_request() if (r->aio) { return; } that flag is set when thread pool is enabled. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274486

Re: Upstream module usage to process data

2017-05-30 Thread isolomka
Hi Maxim, Thanks for quick response. I've implemented all upstream callbacks and upstream seems to work fine now. But i still have the open question how to avoid sending received data from upstream to the downstream client. As I said, I need to process received data first and after that send resul

Upstream module usage to process data

2017-05-29 Thread isolomka
Hi All, I'm developing NGINX module which should read some binary data from upstream server, process it an send response to the user. So to do it i'm using ngx_http_upstream API to create upstream request and get data. So the question is where is the right point to start processing of received cha