Re: subrequest error with http2

2015-10-07 Thread Yichun Zhang (agentzh)
Hello!

On Tue, Oct 6, 2015 at 5:33 PM, Carlos Eduardo Ferreira Rodrigues wrote:
> I'm aware 1.9.5 isn't supported yet and that SPDY is mentioned in the docs as 
> non-working for certain API calls
> as well. However, we are have been using location.capture with SPDY for a 
> while now and haven't seen any issues.
> Information on why and what issues are present is a little fuzzy (and 
> searching only returns old stuff that some
> sources claim not to apply anymore), can you provide some details?
>

Well, I just haven't had the time to look close enough to SPDY or
HTTP/2. I've been mainly relying on the user feedback on such
(unsupported) usage. In theory, they *should* work with
ngx.location.capture*. But there might be some knobs to resolve. I'm
not sure and I cannot give you any details at this point. Sorry.

Regards,
-agentzh

___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel


RE: subrequest error with http2

2015-10-06 Thread Carlos Eduardo Ferreira Rodrigues
Hi,

I'm aware 1.9.5 isn't supported yet and that SPDY is mentioned in the docs as 
non-working for certain API calls as well. However, we are have been using 
location.capture with SPDY for a while now and haven't seen any issues. 
Information on why and what issues are present is a little fuzzy (and searching 
only returns old stuff that some sources claim not to apply anymore), can you 
provide some details?

Best regards,

--
Carlos Rodrigues


From: nginx-devel [nginx-devel-boun...@nginx.org] On Behalf Of Yichun Zhang 
(agentzh) [agen...@gmail.com]
Sent: Tuesday, October 06, 2015 4:01
To: nginx-devel@nginx.org
Subject: Re: subrequest error with http2

Hello!

On Wed, Sep 23, 2015 at 1:14 AM, Carlos Eduardo Ferreira Rodrigues wrote:
> I just upgraded nginx to 1.9.5 on our testing enviroment, and immediately 
> started seeing this error on http2 requests:
>
> 2015/09/22 18:04:06 [alert] 27305#27305: *1 epoll_ctl(1, 17) failed (17: File 
> exists), client: x.x.x.x, server: _, request: "GET ... HTTP/2.0", subrequest: 
> "...", host: "..."
>
> The subrequest is being made from Lua code using "ngx.location.capture()", so 
> I understand this may be an issue with ngx_lua and not nginx itself. However, 
> this worked fine with nginx 1.8.0/1.9.4 and spdy and nothing else has changed.
>

The ngx.location.capture* API does not support SPDY nor HTTP 2.0
(yet). We may add such support in the future.

Oh, BTW, nginx 1.9.5 is not listed in the compatible nginx core list yet:

https://github.com/openresty/lua-nginx-module#nginx-compatibility

Regards,
-agentzh

___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel


Re: subrequest error with http2

2015-10-05 Thread Yichun Zhang (agentzh)
Hello!

On Wed, Sep 23, 2015 at 1:14 AM, Carlos Eduardo Ferreira Rodrigues wrote:
> I just upgraded nginx to 1.9.5 on our testing enviroment, and immediately 
> started seeing this error on http2 requests:
>
> 2015/09/22 18:04:06 [alert] 27305#27305: *1 epoll_ctl(1, 17) failed (17: File 
> exists), client: x.x.x.x, server: _, request: "GET ... HTTP/2.0", subrequest: 
> "...", host: "..."
>
> The subrequest is being made from Lua code using "ngx.location.capture()", so 
> I understand this may be an issue with ngx_lua and not nginx itself. However, 
> this worked fine with nginx 1.8.0/1.9.4 and spdy and nothing else has changed.
>

The ngx.location.capture* API does not support SPDY nor HTTP 2.0
(yet). We may add such support in the future.

Oh, BTW, nginx 1.9.5 is not listed in the compatible nginx core list yet:

https://github.com/openresty/lua-nginx-module#nginx-compatibility

Regards,
-agentzh

___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel


Re: subrequest error with http2

2015-10-05 Thread Yichun Zhang (agentzh)
Hello!

On Wed, Sep 23, 2015 at 1:34 AM, Maxim Dounin wrote:
>
> The lua module deeply integrates into nginx internals (far beyond
> what we consider to be nginx modules API), and there is no surprise
> it's broken by the changes in nginx 1.9.5.
>

True. This is also why ngx_lua has so many advanced features :)
Actually I quite like the fact that NGINX does not enforce a limited
set of API for 3rd-party modules to use and 3rd-party module authors
can almost always find their way to implement bold imaginations *grin*

For the same reason, I'll hate to see that NGINX enforces a well
defined ABI, BTW :)

Regards,
-agentzh

___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel


Re: subrequest error with http2

2015-09-22 Thread Maxim Dounin
Hello!

On Tue, Sep 22, 2015 at 06:14:56PM +0100, Carlos Eduardo Ferreira Rodrigues 
wrote:

> Hi,
> 
> I just upgraded nginx to 1.9.5 on our testing enviroment, and immediately 
> started seeing this error on http2 requests:
> 
> 2015/09/22 18:04:06 [alert] 27305#27305: *1 epoll_ctl(1, 17) failed (17: File 
> exists), client: x.x.x.x, server: _, request: "GET ... HTTP/2.0", subrequest: 
> "...", host: "..."
> 
> The subrequest is being made from Lua code using "ngx.location.capture()", so 
> I understand this may be an issue with ngx_lua and not nginx itself. However, 
> this worked fine with nginx 1.8.0/1.9.4 and spdy and nothing else has changed.

The lua module deeply integrates into nginx internals (far beyond 
what we consider to be nginx modules API), and there is no surprise 
it's broken by the changes in nginx 1.9.5.

-- 
Maxim Dounin
http://nginx.org/

___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel