[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/05: store: Pass a socket type hint to 'getaddrinfo'.
From: |
Ludovic Courtès |
Subject: |
01/05: store: Pass a socket type hint to 'getaddrinfo'. |
Date: |
Thu, 22 Jun 2017 05:01:25 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 7ae97a4c3f241e6d6e9b8bc6d13ff8d4d9ded9bd
Author: Ludovic Courtès <address@hidden>
Date: Wed Jun 21 23:00:08 2017 +0200
store: Pass a socket type hint to 'getaddrinfo'.
* guix/store.scm (open-inet-socket): Pass hints in the 'getaddrinfo'
call.
---
guix/store.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/guix/store.scm b/guix/store.scm
index b584caa..9b4c655 100644
--- a/guix/store.scm
+++ b/guix/store.scm
@@ -399,7 +399,9 @@
(if (number? port) (number->string port) port)
(if (number? port)
(logior AI_ADDRCONFIG AI_NUMERICSERV)
- AI_ADDRCONFIG)))
+ AI_ADDRCONFIG)
+ 0 ;any address family
+ SOCK_STREAM)) ;TCP only
(let loop ((addresses addresses))
(match addresses
- branch master updated (ace6cc1 -> 992a9e5), Ludovic Courtès, 2017/06/22
- 05/05: gnu: Remove unnecessary module import., Ludovic Courtès, 2017/06/22
- 02/05: store: Define a default port for TCP connections., Ludovic Courtès, 2017/06/22
- 03/05: daemon: '--listen' can be passed several times, can specify TCP endpoints., Ludovic Courtès, 2017/06/22
- 04/05: daemon: Set TCP_NODELAY and TCP_QUICKACK on remote sockets., Ludovic Courtès, 2017/06/22
- 01/05: store: Pass a socket type hint to 'getaddrinfo'.,
Ludovic Courtès <=