Getstream starts to become unresponsive to HTTP requests after a few days
Jakub Paweł Głazik
zytek-lists at nuxi.pl
Mon Dec 28 16:28:15 CET 2009
IIRC I fixed it in mcgw using this (this is common code with getstream:
durex001:/iptv/proxy# diff -u m/mcgw/libhttp.c mcgw/libhttp.c
--- m/mcgw/libhttp.c 2009-03-01 17:34:25.000000000 +0100
+++ mcgw/libhttp.c 2009-10-05 16:39:10.000000000 +0200
@@ -429,7 +429,8 @@
bufferevent_free(hc->bev);
http_request_free(hc);
-
+
+ shutdown(hc->fd, 2);
close(hc->fd);
evbuffer_free(hc->evb);
durex001:/iptv/proxy# diff -u m/mcgw/socket.c mcgw/socket.c
--- m/mcgw/socket.c 2009-03-01 19:39:42.000000000 +0100
+++ mcgw/socket.c 2009-10-05 16:39:10.000000000 +0200
@@ -15,6 +15,7 @@
#include "simplebuffer.h"
void socket_close(int sock) {
+ shutdown(sock, 2);
close(sock);
}
--
.: Jakub Paweł Głazik,
.: email & jabber: zytek%nuxi.pl
More information about the Getstream
mailing list