diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-05-23 22:00:21 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-05-23 22:02:30 +0200 |
commit | 0bb3f946e97424616c1a95f2372e5bc41e8f8174 (patch) | |
tree | ce404d3e126eb4887ae6f0cdf25fb8ef3993dd4a | |
parent | c497bfb1f6e58c118aa35087104ab821dca5030c (diff) | |
download | guile-0bb3f946e97424616c1a95f2372e5bc41e8f8174.tar.gz |
web: Keep the default size for the client's in-kernel receive buffer.
Fixes <http://bugs.gnu.org/15368>.
* 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.
-rw-r--r-- | module/web/client.scm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/module/web/client.scm b/module/web/client.scm index 3f6c45bfe..070b0c3d1 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) |