Safe TCP accept loop

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Safe TCP accept loop

Sumit Raja

Hello,

 

I’ve looked at https://wiki.haskell.org/Concurrency_demos/Graceful_exit and used(2) Using throwTo without the use of block and unblock. It runs on 8.2.1 with my limited testing. I can’t find out much about what the  > 7.x GHC replacement for block/unblock is other than mask. What does the unblock do in acceptConnections'?

 

Does this method of handling an accept loop still need masking of async exceptions ? If so where does this need to be done?

 

Thanks

 

Sumit

 

 


_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners