store: Remove misleading 'setsockopt' call.
* guix/store.scm (open-connection): Remove misleading 'setsockopt' call,
erroneously introduced in df1fab58
. This would actually shrink the
receive buffer from 124 KiB to 12 KiB, though it had little impact on
performance.
This commit is contained in:
parent
4b2615e1ca
commit
884af1b4ec
1 changed files with 0 additions and 10 deletions
|
@ -290,16 +290,6 @@ (define* (open-connection #:optional (file (%daemon-socket-file))
|
|||
(socket PF_UNIX SOCK_STREAM 0)))
|
||||
(a (make-socket-address PF_UNIX file)))
|
||||
|
||||
(catch 'system-error
|
||||
(lambda ()
|
||||
;; Enlarge the receive buffer.
|
||||
(setsockopt s SOL_SOCKET SO_RCVBUF (* 12 1024)))
|
||||
(lambda args
|
||||
;; On the Hurd, the pflocal server's implementation of `socket_setopt'
|
||||
;; always returns ENOPROTOOPT. Ignore it.
|
||||
(unless (= (system-error-errno args) ENOPROTOOPT)
|
||||
(apply throw args))))
|
||||
|
||||
(catch 'system-error
|
||||
(cut connect s a)
|
||||
(lambda args
|
||||
|
|
Loading…
Reference in a new issue