[Haskell-cafe] Re: all threads are blocked by recvFrom
Simon Marlow
simonmarhaskell at gmail.com
Tue Apr 1 13:15:12 EDT 2008
Vitaliy Akimov wrote:
> Hello, I have a problem with building multithreaded UDP server. If
> main thread is waiting for new request in recvFrom all other threads
> are blocked too. I've checked every variant with
> forkIO,forkOS,-threaded etc, nothing's helped. After reading GHC docs
> I've understood this is happened becouse foreign function call from
> recvFrom (network library) is marked to be unsefe, so it's execution
> blocks every other thread. How can I resolve it?
Sorry for the late reply. This will be fixed in GHC 6.8.3:
http://hackage.haskell.org/trac/ghc/ticket/1129
Cheers,
Simon
More information about the Haskell-Cafe
mailing list