--- Coro/Coro.pm 2007/09/20 22:53:23 1.132 +++ Coro/Coro.pm 2007/09/21 01:23:58 1.133 @@ -226,13 +226,15 @@ required. If you are concerned about pooled coroutines growing a lot because a -single C used a lot of stackspace you can e.g. C once per second or so to slowly replenish the pool. +single C used a lot of stackspace you can e.g. C once per second or so to slowly replenish the pool. In +addition to that, when the stacks used by a handler grows larger than 16kb +(adjustable with $Coro::MAX_POOL_RSS) it will also exit. =cut our $POOL_SIZE = 8; -our $MAX_POOL_RSS = 64 * 1024; +our $MAX_POOL_RSS = 16 * 1024; our @pool; sub pool_handler {