Part of the memory leak can be avoided in usercode
by using reconnectPort (of course, an automatic way might be nicer)
commitad71b6298e8a19127c2fc55873da3bdf8cda3c44
authorEdsko de Vries <edsko@edsko.net>
dateTue 18 Sep 2012, 16:02 (14 years ago)
parent9db1e1c
distributed-process/benchmarks/Channels.hs+2
@@ -12,6 +12,8 @@ pingServer :: Process ()
1212pingServer = forever $ do
1313 them <- expect
1414 sendChan them ()
15+ -- TODO: should this be automatic?
16+ reconnectPort them
1517
1618pingClient :: Int -> ProcessId -> Process ()
1719pingClient n them = do