Compiled as-is with GHC 7.4.1, this code runs as expected. However, if the
-threaded
option is added to both ghc-options
lines in test.cabal
, both
executables die with
*** Exception: ZMQError { errno = 38, source = "getIntOpt", message =
"Socket operation on non-socket" }
The same error is raised if the main
functions from server.hs
and
client.hs
are run side-by-side in two ghci
sessions.
This code runs as expected in all three cases when compiled under GHC 7.0.4.
Progress: Under 7.4.1, if -threaded -rtsopts
is added to both ghc-options
lines, and the executables are run with +RTS -VO -RTS
, the code runs as
expected. The -V0
flag disables the RTS clock.