Thanks. It seems like getaddrinfo() is returning two results when resolving localhost. Can you provide the contents of your hostname resolution-related configuration please? I.e., /etc/hosts, /etc/resolv.conf, /etc/nsswitch.conf, anything else you might have tweaked in that area.
On Sat, May 6, 2017 at 7:15 PM, Adam Borowski <kilob...@angband.pl> wrote: > On Sat, May 06, 2017 at 06:38:19PM +0200, Michael Stapelberg wrote: > > Thanks for the strace. We can see that sslh creates two sockets of the > same > > address family, on the same host and port: > > > > […] > > [pid 23812] socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 3 > > [pid 23812] setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 > > [pid 23812] setsockopt(3, SOL_IP, IP_FREEBIND, [1], 4) = 0 > > [pid 23812] bind(3, {sa_family=AF_INET, sin_port=htons(37229), > > sin_addr=inet_addr("127.0.0.1")}, 16) = 0 > > [pid 23812] listen(3, 50) = 0 > > [pid 23812] socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 4 > > [pid 23812] setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 > > [pid 23812] setsockopt(4, SOL_IP, IP_FREEBIND, [1], 4) = 0 > > [pid 23812] bind(4, {sa_family=AF_INET, sin_port=htons(37229), > > sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EADDRINUSE (Address already > in > > use) > > […] > > > > Does the attached patch help by any chance? If not, could you supply a > new > > strace file, with both patches applied please? > > No help; strace attached. > > > Meow! > -- > Don't be racist. White, amber or black, all beers should be judged based > solely on their merits. Heck, even if occasionally a cider applies for a > beer's job, why not? > On the other hand, corpo lager is not a race. > -- Best regards, Michael