Exception: mallocPlainForeignPtrBytes in recv
recv from Network.Socket.ByteString throws Exception: mallocPlainForeignPtrBytes: size must be >= 0 when trying to receive from not responding server. I have timeout of 1 second set using setRecvTimeout from Network.Socket.Options. I tested it with recvFrom and it throws corresponding Exception: recvFrom: failed (Connection timed out (WSAETIMEDOUT)). Could possibly be a bug.
I have Windows 8.1 and network-2.6.0.1 installed.
I get this problem as well, but only on my Windows machine.
Is there a repro for this?
I would like to close this since network supports RecvTimeOut now.
If RecvTimeOut has a same bug, please open a new issue.