summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorHoward Chu <hyc@highlandsun.com>2010-07-08 09:21:24 +0000
committerHoward Chu <hyc@highlandsun.com>2010-07-08 09:21:24 +0000
commit0aee2a57c86d7afc04b6e9638cb65b6bef9e8c47 (patch)
tree4c950a7e1d33ba69af49dc27f01f0b602b41e3ec /ffserver.c
parent2a22187f399a3d652cef943b563d079b029e559c (diff)
Also use 503 for bandwidth limit exceeded
Originally committed as revision 24107 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c4
1 files changed, 2 insertions, 2 deletions
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"
"<html><head><title>Too busy</title></head><body>\r\n"