Welcome! Log In Create A New Profile

Advanced

Re: streaming request

Maxim Dounin
May 21, 2013 09:34AM
Hello!

On Tue, May 21, 2013 at 08:28:19AM -0400, pgte wrote:

> Hi,
>
> I'm trying to do a streaming request that uses chunked encoding that gets
> forwarded to a back-end node.js http server. In this case the client does
> not end the request before it gets a response header from the server.
> This works well if using node.js standalone, but when fronted by Nginx,
> nginx does not forward the request to my node process and a minute later
> returns a 408 to the client.

This doesn't work as nginx insists on reading a request body
before the request is passed to a backend server.

You may consider switching a protocol to something like WebSocket.
See here for instructions how to proxy WebSocket connections
though nginx:

http://nginx.org/en/docs/http/websocket.html

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

streaming request

pgte May 21, 2013 08:28AM

Re: streaming request

Maxim Dounin May 21, 2013 09:34AM

Re: streaming request

Pasi Kärkkäinen May 23, 2013 02:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 183
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready