Getstream starts to become unresponsive to HTTP requests after a few days
Florian Lohoff
flo at rfc822.org
Mon Dec 28 21:31:34 CET 2009
On Mon, Dec 28, 2009 at 04:28:15PM +0100, Jakub Paweł Głazik wrote:
> 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);
Getstream does not have a function called shutdown.
> 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);
> }
And this looks like a layering violation.
Flo
--
Florian Lohoff flo at rfc822.org
"Es ist ein grobes Missverständnis und eine Fehlwahrnehmung, dem Staat
im Internet Zensur- und Überwachungsabsichten zu unterstellen."
- - Bundesminister Dr. Wolfgang Schäuble -- 10. Juli in Berlin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://gt.owl.de/pipermail/getstream/attachments/20091228/cf9b014f/attachment.pgp>
More information about the Getstream
mailing list