Hi , I’ve tried to do same thing, but new https://github.com/mongodb/mongo-c-driver is extremely buggy and still don’t have support for async cursor reading or keep alive connection (it keeps only handler structure for making new connection on the fly). After a week of development and researches I got some working version but it’s didn’t work out on production, on existing database newby tigran.bayburtsyan - Nginx Development
Hi All I'm doing centralized service for clearing our servers Nginx cache for specific files, but I can't find the algorithm how Nginx making cache file based on request and cache_key. The only thing in documentation is http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path How can I get cache file path for this static file http://example.com/static/test.png ? Thanks __by tigran.bayburtsyan - Nginx Development
Can you please send me some good example for upstream module implementation ? I've been googling all time this 2 days. Thanks -----Original Message----- From: nginx-devel On Behalf Of Maxim Dounin Sent: Monday, December 7, 2015 4:46 PM To: nginx-devel@nginx.org Subject: Re: Upstream always NULL Hello! On Mon, Dec 07, 2015 at 12:43:25PM +0400, Tigran Bayburtsyan wrote: > function ngx_http_by tigran.bayburtsyan - Nginx Development
function ngx_http_upstream_create , always returning NGX_ERROR . using Debugger I saw that after this lines u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t)); if (u == NULL) { return NGX_ERROR; } ngx_ pcalloc always returning null. Is there anybody know this issue ? _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org httpby tigran.bayburtsyan - Nginx Development
Hi I'm doing module for my company to handle custom Unix socket protocol file streaming through Ngxinx. Now we are just splitting big files into small ones , saving it in directory and sending through Nginx, but when traffic goes up, Hard driver read write is getting extremely high, so we decided to write Nginx module for streaming directly. But I can't find example or documentation how to streby tigran.bayburtsyan - Nginx Development
Hi all. I have a quick question. Is it possible to create new worker and kill existing one from Nginx module ? Let me know if anyone can explain. Thanks._______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-develby tigran.bayburtsyan - Nginx Development
Hi All. I've asked this question, and didn't get any solution for this. So I decided to write my own module to solve my own problem :) Checkout my module https://github.com/flaxtonio/nginx-flaxton-logger-module , and let me know if you will have some suggestions for it. Maxim Dounin. Thanks for your response. To transfer Request into a char * array I've crated functionality for it in this moduleby tigran.bayburtsyan - Nginx Development
So there is now way of getting or transforming ngx_http_request_t to char * or byte array ? In any case C/C++ socket receiving data as a byte array .... For example here we can log full request to file as a char * (or string) https://gist.github.com/morhekil/1ff0e902ed4de2adcb7a When I'm saying "string" I don't mean string type, I mean something with a pointer and size where I can reaby tigran.bayburtsyan - Nginx Development
Hi. I'm trying to make a smart logging module for Nginx and I need to get all HTTP request from client as a string (char *). I know that ngx_http_request_t contains all HTTP request data , but I don't need to make a loop through all headers_in parameters or request structure parameters. I want to get all request with body as a char * array, like Nginx is receiving from tcp socket. How can Iby tigran.bayburtsyan - Nginx Development
Hi. I can't find out why Nginx calling ngx_http_free_request function after ngx_add_timer , if I'm not calling ngx_http_finalize_request or something relevant ? Should I do something to keep request in memory ? Thanks. 2015-02-22 1:28 GMT+04:00 Tigran Bayburtsyan <tigran.bayburtsyan@gmail.com>: > Ok I sow that code during debugging Nginx request , but why my request is > freeing ifby tigran.bayburtsyan - Nginx Development
Ok I sow that code during debugging Nginx request , but why my request is freeing if I'm not calling ngx_http_finalize_request ? What should I do to keep my request alive ? Thanks. 2015-02-22 1:23 GMT+04:00 tommy watson <tommywatson+nginx-devel@gmail.com>: > My money is on your request has been cleaned up in ngx_http_free_request(): > > > https://github.com/nginx/nginx/blob/maby tigran.bayburtsyan - Nginx Development
No this time I'm trying to do it with separate process by just sharing memory between Nginx worker and my 3rd party excusable... I'm making ngx_timer to send data when it will be received from shared memory. It works fine, but I can't figure out why my r->pool is null ? I'm using Nginx 1.7 version. Thanks for your help. 2015-02-22 1:02 GMT+04:00 tommy watson <tommywatson+nginx-devel@gmailby tigran.bayburtsyan - Nginx Development
Hi All. I've created a function for adding my custom ngx_timer , but after 1st time loop my r->pool is setting to NULL , also it sets NULL my r->connection->log, and after second loop it throws exception on *ngx_palloc *because my r->pool is NULL. I can't find out why, here is my function *void add_aling_event(ngx_event_t *e, ngx_http_request_t *r, void (*handler), int timer)* *{* *by tigran.bayburtsyan - Nginx Development
Hi. I'm writing simple module for Nginx just to fork process on request and execute some separate process and then exit. *if(fork() == 0)* *{* * // Use r request pointer* *.* *.* *.* * // creating out_chain (could be more than 700kb)* * ngx_http_output_filter ( r , out_chain );* * ngx_http_finalize_request(r, NGX_OK);* *}* *else* *{* * close(r->connection->fd); * *by tigran.bayburtsyan - Nginx Development
Hi. I'm trying to find out, how to write module for Nginx which would be able to access directly to connection socket and transfer non HTTP data. I know that Nginx is written for specially HTTP(S) requests, but I'm thinking of use it as a proxy server for my custom binary protocol. Where can I find out some documentation or examples about it ? Thanks. __________________________________________by tigran.bayburtsyan - Nginx Development
Hi. I'm developing Nginx module where I need to handle some function when all data have been sent to client or when client closed the connection. For example I have ngx_http_finalize_request(r, ngx_http_output_filter ( r , out_chain )); Where out_chain contains over 700KB of data. I can't find where to add function to handle event that all 700kb have been sent to client, or client closed the connby tigran.bayburtsyan - Nginx Development
Hi. I'm developing Nginx module where I need to handle some function when all data have been sent to client or when client closed the connection. For example I have ngx_http_finalize_request(r, ngx_http_output_filter ( r , out_chain )); Where out_chain contains over 700KB of data. I can't find where to add function to handle event that all 700kb have been sent to client, or client closed thby tigran.bayburtsyan - Nginx Mailing List - English
Привет. Есть проблема с получением кокого то хандлера который бы вызывался когда все данные в out_chain переданны клиенту или когда соеденение с клиентом уже закрыто. Например вызываю комбинацыю этих функцый для отправкby tigran.bayburtsyan - Nginx Mailing List - Russian
Привет. Пишу модуль в котором нужно отправлять дополнительные хедары при каждом запросе. Нашел похожую имплементацию в src/http/modules/ngx_http_headers_filter_module.c функцыя ngx_http_add_header Сделал точно также и в моем модуле, но всегда брауby tigran.bayburtsyan - Nginx Mailing List - Russian
Спасибо Максим за ваш ответ, я удалил ненужные части кода и исправил ... но все равно иногда POST запросы не работают. Можете привести пример рабочего кода где модуль получает POST запрос , читает тело запроса и отправляет оby tigran.bayburtsyan - Nginx Mailing List - Russian
Привет. Я пишу модуль для Nginx в котором будут обрабатываются POST запросы. Нашел несколько opensource проектов в которых тоже обрабатываются запросы такого типа. Например https://github.com/calio/form-input-nginx-module . Сделал этот функционал ,by tigran.bayburtsyan - Nginx Mailing List - Russian