[Haskell-cafe] Issue with "connectTo" function in "network" package

aditya siram aditya.siram at gmail.com
Fri Jun 4 17:59:25 EDT 2010


Yeah, that seems to be the issue. When I commented out the "::1.."
line it worked.
-deech

On 6/4/10, Jeremy Shaw <jeremy at n-heptane.com> wrote:
> Perhaps it was only listening on IPv6 ? ::1 ?
>
> - jeremy
>
> On Thu, Jun 3, 2010 at 10:30 PM, aditya siram <aditya.siram at gmail.com>wrote:
>
>> Hi all,
>> I had an issue where using the connectTo [1] function would fail to
>> connect to "localhost" if my wireless card was turned off. The moment
>> I turned on my wireless connection it worked. But if I use connectTo
>> with "127.0.0.1" [2] with my network off it works.
>>
>> I confirmed that "localhost' resolves to "127.0.0.1" by pinging
>> "localhost" from command line with the Internet off.
>>
>> Is this a bug in "connectTo"?
>>
>> -deech
>>
>> [1] connectTo "localhost" (PortNumber some_number)
>> [2] connectTo "127.0.0.1" (PortNumber some_number)
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>


More information about the Haskell-Cafe mailing list