network icon indicating copy to clipboard operation
network copied to clipboard

Exception: mallocPlainForeignPtrBytes in recv

Open tony-ist opened this issue 10 years ago • 2 comments

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.

tony-ist avatar Sep 15 '14 02:09 tony-ist

I get this problem as well, but only on my Windows machine.

andremarianiello avatar Jun 13 '15 21:06 andremarianiello

Is there a repro for this?

Mistuke avatar May 21 '20 08:05 Mistuke

I would like to close this since network supports RecvTimeOut now. If RecvTimeOut has a same bug, please open a new issue.

kazu-yamamoto avatar May 30 '23 01:05 kazu-yamamoto