On Tue, Sep 15, 2009 at 12:07:41PM +0200, Julien Cristau wrote: > you may want to add here something like: > > if ((aip->ai_family == AF_INET6) && > (setsockopt(fds[*num_fds], IPPROTO_IPV6, IPV6_V6ONLY, > &yes, sizeof(yes)) < 0)) { > net_closesocket(fds[*num_fds]); > continue; > } > > to avoid on ipv6 socket trying to get ipv4 connections (if you're > looping over all addresses anyway, you'll have AF_INET sockets for your > v4 addresses)
Thanks, that will probably fix the problem and make things work. Still, I can't believe that this is the "normal" way to listen for incoming connections from the internet. It's just much too complex. Roland, can you test if this addition to my patch makes the warning go away for you, and that it results in the server listening on both protocols? Thanks, Bas
signature.asc
Description: Digital signature