[xiph-commits] r8206 - icecast/trunk/icecast/src
oddsock at motherfish-iii.xiph.org
oddsock at motherfish-iii.xiph.org
Mon Nov 15 20:27:00 PST 2004
Author: oddsock
Date: 2004-11-15 20:27:00 -0800 (Mon, 15 Nov 2004)
New Revision: 8206
Modified:
icecast/trunk/icecast/src/fserve.c
Log:
need to fail properly
Modified: icecast/trunk/icecast/src/fserve.c
===================================================================
--- icecast/trunk/icecast/src/fserve.c 2004-11-16 04:04:02 UTC (rev 8205)
+++ icecast/trunk/icecast/src/fserve.c 2004-11-16 04:27:00 UTC (rev 8206)
@@ -460,6 +460,8 @@
bytes = sock_write(httpclient->con->sock,
"HTTP/1.0 416 Request Range Not Satisfiable\r\n\r\n");
if(bytes > 0) httpclient->con->sent_bytes = bytes;
+ fserve_client_destroy(httpclient);
+ return -1;
}
}
else {
@@ -469,6 +471,8 @@
bytes = sock_write(httpclient->con->sock,
"HTTP/1.0 416 Request Range Not Satisfiable\r\n\r\n");
if(bytes > 0) httpclient->con->sent_bytes = bytes;
+ fserve_client_destroy(httpclient);
+ return -1;
}
}
else {
More information about the commits
mailing list