We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6571843 commit aad6d72Copy full SHA for aad6d72
changelog
@@ -2,6 +2,8 @@
2
* Deprecate `NN_LINGER` option
3
* Improve testsuite reliability
4
* Add support for `NN_RCVMAXSIZE` option
5
+ * Fixed bug in nonblocking send where `threadWaitWrite` was used instead of
6
+ `threadWaitRead`
7
8
0.2.4
9
* Bumped upper bound on binary
src/Nanomsg.hsc
@@ -469,7 +469,7 @@ send (Socket t sid) string =
469
throwErrnoIfMinus1RetryMayBlock_
470
"send"
471
(c_nn_send sid ptr (fromIntegral len) (#const NN_DONTWAIT))
472
- (getOptionFd (Socket t sid) (#const NN_SNDFD) >>= threadWaitWrite)
+ (getOptionFd (Socket t sid) (#const NN_SNDFD) >>= threadWaitRead)
473
474
-- | Blocking receive.
475
recv :: Receiver a => Socket a -> IO ByteString
0 commit comments