From 4dee57333aa8dd5017f4c45302d40f8f3b900ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 23 May 2014 22:00:21 +0200 Subject: web: Keep the default size for the client's in-kernel receive buffer. Fixes . * module/web/client.scm (open-socket-for-uri): Remove call to 'setsockopt'. Contrary to what the comment said, its effect was to shrink the receive buffer from 124 KiB (the default size, per /proc/sys/net/core/rmem_default on Linux-based systems) to 12 KiB. Origin: http://git.savannah.gnu.org/cgit/guile.git/commit/?id=0bb3f946e97424616c1a95f2372e5bc41e8f8174 Added-by: Rob Browning --- module/web/client.scm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module/web/client.scm b/module/web/client.scm index 3f6c45b..070b0c3 100644 --- a/module/web/client.scm +++ b/module/web/client.scm @@ -1,6 +1,6 @@ ;;; Web client -;; Copyright (C) 2011, 2012, 2013 Free Software Foundation, Inc. +;; Copyright (C) 2011, 2012, 2013, 2014 Free Software Foundation, Inc. ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public @@ -92,8 +92,6 @@ ;; Buffer input and output on this port. (setvbuf s _IOFBF) - ;; Enlarge the receive buffer. - (setsockopt s SOL_SOCKET SO_RCVBUF (* 12 1024)) ;; If we're using a proxy, make a note of that. (when http-proxy (set-http-proxy-port?! s #t)) s)