From 0aee2a57c86d7afc04b6e9638cb65b6bef9e8c47 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 8 Jul 2010 09:21:24 +0000 Subject: Also use 503 for bandwidth limit exceeded Originally committed as revision 24107 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ffserver.c') diff --git a/ffserver.c b/ffserver.c index 3559968458..8f073fe365 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1589,10 +1589,10 @@ static int http_parse_request(HTTPContext *c) } if (c->post == 0 && max_bandwidth < current_bandwidth) { - c->http_error = 200; + c->http_error = 503; q = c->buffer; q += snprintf(q, c->buffer_size, - "HTTP/1.0 200 Server too busy\r\n" + "HTTP/1.0 503 Server too busy\r\n" "Content-type: text/html\r\n" "\r\n" "Too busy\r\n" -- cgit v1.2.3