problems with ghc-5.02 Socket module (SunOS)
Simon Marlow
simonmar@microsoft.com
Mon, 15 Oct 2001 16:26:25 +0100
> what am I doing wrong? it worked before ... this program
>=20
> module Main (main) where
> import IO
> import Socket
> main =3D do
> h <- connectTo "theopc.informatik.uni-leipzig.de"=20
> ( PortNumber $ 9999 )
> putStrLn "connected"
> hClose h
>=20
> results in
>=20
> Fail: invalid argument
> Action: getSocketOption
> Reason: Invalid argument
>=20
> even though there IS a listener on the socket
> (other programs can connect to it).
There are two bugs in SocketPrim.getSocketOption, which are causing
connectTo to fail in the way you reported. The fix will be in 5.02.1.
Cheers,
Simon