[Haskell-beginners] Network client - reading and writing to a socket

David Place d at vidplace.com
Sun Jul 31 18:42:45 CEST 2011


Shouldn't be laziness that is biting you.  You are using strict ByteStrings.  I'm stumped!  Did you try artificially inserting something like this to force c and c'?

On Jul 31, 2011, at 12:25 PM, Manfred Lotz wrote:

> recvMsg h = do
>  c <- B.hGet h 1
>  hFlush h

print c

>  c' <- B.hGetNonBlocking h 40000 

print c'

>  hFlush h
>  return $ B.concat [c,c']




More information about the Beginners mailing list