
We just tried the following prog on our Solaris build of 5.02.1: import System import Socket import IO main = do d <- connectTo "localhost" (PortNumber 7) hPutStr d "fiofofofof\n" hFlush d c <- hGetContents d putStr c and it works fine for us. The bug you report has exactly the symptoms of a bug we fixed in 5.02. You are definitely using 5.02.1, yes? J | -----Original Message----- | From: Luis Diego Fallas [mailto:luisdiegofallas@yahoo.com] | Sent: Wednesday, November 07, 2001 12:57 AM | To: glasgow-haskell-users@haskell.org | Subject: Sockets on Solaris | | | Hi everyone, | | I'm having trouble using the Socket module on | Solaris. | | The following program: | | import System | import Socket | import IO | | main = | do | d <- connectTo "localhost" (PortNumber 80) | hPutStr d "GET / HTTP/1.0\n\n" | hFlush d | c <- (hGetContents d) | putStr c | | | fails with: | | Fail: invalid argument | Action: getSocketOption | Reason: Invalid argument | | I'm using ghc-5.02.1 . | | Thanks. | | | | __________________________________________________ | Do You Yahoo!? | Find a job, post your resume. | http://careers.yahoo.com | | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgo| w-haskell-users |