diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-08-28 08:08:57 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-08-28 08:27:59 +0000 |
commit | ad76680320da987e08545018d476c8dbd4060441 (patch) | |
tree | 226067fc2d1c356c95fb4d181aafbbc6e853ec6f /main/guile/0010-web-Keep-the-default-size-for-the-client-s-in-kernel.patch | |
parent | 90faba1d9dd647e1f5751208ad4d766872a043b1 (diff) | |
download | aports-ad76680320da987e08545018d476c8dbd4060441.tar.bz2 aports-ad76680320da987e08545018d476c8dbd4060441.tar.xz |
main/guile: cherry-pick patches from debian/upstream
fixes arm build among other issues
Diffstat (limited to 'main/guile/0010-web-Keep-the-default-size-for-the-client-s-in-kernel.patch')
-rw-r--r-- | main/guile/0010-web-Keep-the-default-size-for-the-client-s-in-kernel.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/main/guile/0010-web-Keep-the-default-size-for-the-client-s-in-kernel.patch b/main/guile/0010-web-Keep-the-default-size-for-the-client-s-in-kernel.patch new file mode 100644 index 0000000000..fd3ec43fa5 --- /dev/null +++ b/main/guile/0010-web-Keep-the-default-size-for-the-client-s-in-kernel.patch @@ -0,0 +1,39 @@ +From 4dee57333aa8dd5017f4c45302d40f8f3b900ab6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org> +Date: Fri, 23 May 2014 22:00:21 +0200 +Subject: 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. + +Origin: http://git.savannah.gnu.org/cgit/guile.git/commit/?id=0bb3f946e97424616c1a95f2372e5bc41e8f8174 +Added-by: Rob Browning <rlb@defaultvalue.org> +--- + 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) |