Thank you for new release!
It seems is nothing changed with X-Accel-Redirect issue. I still have
connection close after lingering_timeout.
And one more issue appears: Nginx now shows error message if I put
chunked_transfer_encoding off in subscriber location.
nginx: [emerg] "chunked_transfer_encoding" directive is duplicate in
nginx.conf:123
---
Best Regards
Alexey
--
---
Best Regards
Alexey Vdovin
I did some research on my issue and found when we set discard_body to
1, nginx replaces r->read_event_handler to
ngx_http_discarded_request_body_handler and closes connection.
r->discard_body = 0; - connection is not closed but it could cause
some side effects.
You know push module architecture better then me, probably it will
help you to find right solution.
---
Best Regards
Alexey
See ngx_http_finalize_connection() it sets it own read_event_handler
if r->main->count != 1
I did debug trace and found that.
Here is piece of debug log:
[debug] 13079#0: *1 http finalize request: -4,
"/listen?id=my_channel_1" a:1, c:2
[debug] 13079#0: *1 event timer add: 3: 5000:518281623
[debug] 13079#0: *1 http request count:2 blk:0
[debug] 13079#0: *1 http finalize request: -4,
"/listen?id=my_channel_1" a:1, c:1
[debug] 13079#0: *1 set http keepalive handler
Take look at c:2 that means r->main->count.
---
Best Regards
Alexey
--
I've found workaround by using ngx_http_auth_request_module to make
authentication before subscribe client to the channel.
You are right, it seems nginx has architecture limitation in
subrequest processing.
---
Best Regards
Alexey
I found one more curios think.
If I put auth_request /auth; in subscriber location nginx stops
closing connection even after X-Accel-Redirect
PS: Thank you for solution!
---
Best Regards
Alexey
On Wed, May 25, 2011 at 4:45 PM, Wandenberg Peixoto
--
You received this message because you are subscribed to the Google Groups "nginxpushstream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nginxpushstre...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.