
24 Apr
2015
24 Apr
'15
9:15 a.m.
On Fri, Apr 24, 2015 at 10:04:06AM +0100, Tom Ellis wrote:
In that case the most important thing to do is to try to reproduce the space leak without the snapshot socket.
In fact I think we can already deduce the answer from the implementation of `poll`: http://hackage.haskell.org/package/zeromq4-haskell-0.6.3/docs/src/System-ZMQ... The key point is that the [Poll s m] list is `mapM`ed over. Each handler is checked for a match and then fired or not fired before the next handler is checked for a match. This means that if you call `pollSockets` in a handler you are leaking the space associated with the unprocessed entries. Tom