[xiph-commits] r9330 - icecast/trunk/icecast/src

karl at motherfish-iii.xiph.org karl at motherfish-iii.xiph.org
Mon May 30 19:40:27 PDT 2005


Author: karl
Date: 2005-05-30 19:40:23 -0700 (Mon, 30 May 2005)
New Revision: 9330

Modified:
   icecast/trunk/icecast/src/connection.c
Log:
send response header to stats client


Modified: icecast/trunk/icecast/src/connection.c
===================================================================
--- icecast/trunk/icecast/src/connection.c	2005-05-30 21:16:32 UTC (rev 9329)
+++ icecast/trunk/icecast/src/connection.c	2005-05-31 02:40:23 UTC (rev 9330)
@@ -746,7 +746,13 @@
         return;
     }
 
-    stats_event_inc(NULL, "stats");
+    client->respcode = 200;
+    if (sock_write (client->con->sock, "HTTP/1.0 200 OK\r\n\r\n") < 19)
+    {
+        client_destroy (client);
+        ERROR0 ("failed to write header");
+        return;
+    }
 
     thread_create("Stats Connection", stats_connection, (void *)client, THREAD_DETACHED);
 }



More information about the commits mailing list