hs-connection icon indicating copy to clipboard operation
hs-connection copied to clipboard

IPv6?

Open tolysz opened this issue 10 years ago • 8 comments

Is there a way to specify that I do not want to use IPv6?

tolysz avatar Oct 28 '15 22:10 tolysz

Not being able to force ipv4 is currently breaking my software for many of my users in North America. Please help.

fosskers avatar Apr 27 '16 17:04 fosskers

The part that actually create the client socket is in the network package Network.connectTo which doesn't have a way to specify the underlaying protocol. Which OS are you / your users using ? IIRC some system automatically choose to bind on AF_INET6 when you choose AF_INET unless you explicitly deactivate during your socket creation.

It would be ultimately a really good idea to provide first class support for being able to override the protocol in connection.

vincenthz avatar Apr 27 '16 19:04 vincenthz

+1 we need that

kudlatyamroth avatar Apr 27 '16 19:04 kudlatyamroth

We're on Arch Linux, using servant-client and http-client-tls for HTTPS support.

fosskers avatar Apr 27 '16 19:04 fosskers

Can you strace / ltrace the socket calls and couple of line before / after ?

vincenthz avatar Apr 27 '16 20:04 vincenthz

Maybe. As far as I can tell, the actually connection calls are all made by http-client-tls under the hood.

fosskers avatar Apr 27 '16 20:04 fosskers

yes they are all made by http-client-tls with NC.connectTo.

The reason why I would like to see the strace is to see the result values for the addr resolution, which kind of socket types are created with which parameters, etc.

vincenthz avatar Apr 27 '16 20:04 vincenthz

Ok, I'll do some testing later on.

fosskers avatar Apr 27 '16 22:04 fosskers