streaming request

pgte nginx-forum at nginx.us
Tue May 21 12:28:19 UTC 2013


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

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239384,239384#msg-239384



More information about the nginx mailing list