#2103: Some functions in network library do not work on NetBSD
-------------------------------+--------------------------------------------
Reporter: iquiw | Owner:
Type: bug | Status: reopened
Priority: normal | Milestone: 6.8.3
Component: libraries/network | Version: 6.8.3
Severity: major | Resolution:
Keywords: network | Difficulty: Unknown
Testcase: | Architecture: x86
Os: NetBSD |
-------------------------------+--------------------------------------------
Changes (by cjs):
* status: closed => reopened
* version: 6.8.2 => 6.8.3
* resolution: fixed =>
* architecture: Unknown => x86
* severity: normal => major
Comment:
Listen does not appear to be entirely fixed yet. This program, when run,
does not appear to be listening on port 4444, when tested both via looking
at "netstat -anf inet" (port 4444 is not present) and by trying to connect
on localhost (the connection is refused).
{{{
import IO
import Network
p4444 = PortNumber 4444
punix = UnixSocket "/tmp/l"
main_bad = do
s <- listenOn p4444
(h, hostName, portNum) <- Network.accept s
putStrLn $ "Connection from " ++ hostName ++ ":" ++ show portNum
hPutStrLn h "Bye!"
hClose h
}}}
The program does work on a Unix-domain socket.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2103#comment:5>
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