Welcome! Log In Create A New Profile

Advanced

streaming request

May 21, 2013 08:28AM
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.

I'm using nginx 1.5.0 with the following configuration:

upstream myservername {
server 127.0.0.1:8888;
}

server {
listen 80;
listen 443 ssl;

server_name myservername;

ssl_certificate ...
ssl_certificate_key ...

location / {
proxy_buffering off;
proxy_http_version 1.1;

proxy_pass http://myservername;
}
}

Any clues on how to solve this?

TIA!

--
Pedro
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: 85
Record Number of Users: 6 on August 08, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready