#2005: localhost on mac causes getnameinfo error in safari.
------------------------------------+---------------------------------------
Reporter: alex | Owner:
Type: bug | Status: new
Priority: normal | Milestone: Not GHC
Component: libraries/network | Version: 6.8.2
Severity: normal | Resolution:
Keywords: network localhost ipv6 | Difficulty: Unknown
Testcase: | Architecture: x86
Os: MacOS X |
------------------------------------+---------------------------------------
Comment (by danb):
Server.hs:
{{{
#!/usr/bin/env runghc
module Main where
import Network
main = accept =<< listenOn (PortNumber 8000)
}}}
First, run the server:
{{{
$ ./Server.hs
}}}
Connect with IP, server just quits:
{{{
nc 127.0.0.1 8000
}}}
{{{
$ ./Server.hs
$
}}}
Connect with name, server dies:
{{{
nc localhost 8000
}}}
{{{
$ ./Server.hs
Server.hs: getNameInfo: does not exist (System error)
$
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2005#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs