hain_t out;
ngx_http_send_header(r);
rc = ngx_http_output_filter(r, &out);
ngx_http_finalize_request(r, NGX_ERROR);
Thanks,
Antonio
Il giorno ven 17 ago 2018 alle ore 01:28 Maxim Dounin
ha scritto:
> Hello!
>
> On Thu, Aug 16, 2018 at 12:36:05AM +0200, Antonio Nappa wrote:
&
Hello,
I have two modules loaded and it looks like when I terminate a request from
one module by calling ngx_http_output_filter the body filter in the other
module does not get called. The module with the body filter is loaded first
in the config (IMO it shouldn't matter). Do you have any suggesti
Hello,
I have a module which registers several events and I am using Nginx 1.12.1,
it looks like when I do a reload that the worker(s) hang and with the help
of strace I see that the events hanging are my events. I have added a
function on process exit but it does not get called (probably because
Hi,
I was wondering what happens with ngx_write_fd function and multiple
workers, I have made some tests and it doesn't look like they are
interfering with each other and writing in the middle of a line. However I
am not sure, that's the reason of my question. The file was opened with the
ngx_conf
Hello,
I am doing experiments on a module with the ngx_http_log_loc_conf_t
structure by setting the off flag to 1. I have defined a custom log format
and use it with the access_log directive. I noticed that if there is a 302
even if lcf->off is set to 1 I get some output in the log file. Do you ha
Hello,
I am looking for a structure that I can use to store a counter in the
module, this structure should not be reset every time there is a new
request.
I have made tests with the module custom ctx and the module custom srv
configuration without success, which means every time there is a new
re
Hello,
Is there a reason why the $remote_port variable of the http module could be
empty? I am using it in a custom log format, and from time to time it is
empty.
Thanks,
Antonio
___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.or
Hello,
I am allocating a ctx (on r->connection->pool) during the POST_READ phase,
and I find out that in PREACCESS the ctx is NULL, is this an intended
behavior?
Thanks,
Jeppo
___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/m
Hello,
I would like to trigger a subrequest that will call a location that has an
upstream. What I am experimenting is a loop of subrequests, also if I do
finalize on the subrequest in the subsequent calls to the filter.
if (r != r->main)
{ /* subrequest */
ngx_http_finalize_request(r, NGX_
Hello, in another of my experiments I would like to redirect to a
completely different website the request, I had a look at the proxy_pass
directive and the corresponding module, and I see that a location handler
is set, which means it will hook as the only content handler. My question
is, could I
send some information to the outside world and both ways may work, but I
want to be sure to make the correct design decision.
Thanks a lot,
Antonio
2017-03-21 14:57 GMT+01:00 Maxim Dounin :
> Hello!
>
> On Tue, Mar 21, 2017 at 02:42:01PM +0100, Antonio Nappa wrote:
>
> &g
igger reconnection
timer? At the moment I am handling reconnections also in the read and write
events when if(wev->timedout || c->error || c->close).
Thanks
Antonio
2017-03-09 14:16 GMT+01:00 Maxim Dounin :
> Hello!
>
> On Wed, Mar 08, 2017 at 08:10:25PM +0100, Antonio Nappa w
Hello everyone,
I am in the process of creating a module that connects to the outside to
exchange data with another service, I am taking as inspiration the
mail_module and the upstream module, basically my module is connecting
using the ngx_event_connect_peer and handling the read and write events
Hello,
I have a plugin doing the following:
- go through active connections and detect the one listening on a
particular port (e.g. 443)
- register a read event on a different fd that I got with dup(fd of
connection on 443) with a custom handler (I don't want to interrupt the
normal handshake jus
14 matches
Mail list logo