LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-06-2016, 11:43 PM   #1
hilou
Member
 
Registered: May 2013
Posts: 93

Rep: Reputation: Disabled
[nginx] stop nginx from buffering uptream


Hi All,

I meet a nginx buffering issue. Here is the details:

Nginx is used to proxy flv play to backend stream service, I want to stop nginx from buffering upstream streams. I have the proxy_buffering off config, but it didn't work. When the network is really bad, the playing through nginx is continued without dropping frames which is not what expected. But when play directly through backend stream service, all look good.

What's expected:
When the client(player) has a poor network connection, it should follow up the live stream by droping frames instead of being delayed. The dropping is done by the backend stream service which listen on port 1234, and nginx proxy 80 to 1234 to play.

Here is my nginx configuration:

nginx version: 1.4.4

Code:
server {
	listen       80 ;
	server_name www.example.com;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header Host $http_host;
	proxy_set_header X-Real-IP $remote_addr;
	proxy_redirect off;

	proxy_buffering off;
	proxy_max_temp_file_size 0;

	location ~ \.flv$ {
		proxy_pass http://127.0.0.1:1234;
		access_log logs/flv.alog;
		error_log  logs/flv.elog debug;
		break;
	}
}
 
  


Reply

Tags
nginx


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NGINX + nginx-rtmp-module + HLS + OBS Manoel Júnior Linux - Server 0 08-10-2016 05:45 AM
nginx + php-fpm and nginx modules fantasygoat Linux - Server 0 06-09-2011 12:21 PM
LXer: Nginx+Varnish compared to Nginx LXer Syndicated Linux News 0 04-27-2011 02:30 PM
Nginx experts help me-problem when using Nginx php-fpm !!! HuMan-BiEnG Linux - Server 2 04-17-2011 02:30 PM
NGINX with PHP-FPM vis NGINX with Spawn-FCGI WhisperiN Linux - Server 1 03-15-2011 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration