Closed toxinu closed 8 years ago
If I set a gevent.pool.Pool as a pool (with no size) for an SmtpEdge for example, this boolean condition will always return 'default' instead of using my Pool.
gevent.pool.Pool
SmtpEdge
'default'
Pool
This is because of Pool.__len__ which return how many greenlets this Pool is tracking.
Pool.__len__
Good catch. Can you change this to:
spawn = 'default' if pool is None else pool
and then I will merge. Thanks!
Updated and history rewritten to be cleaner.
Merged, thanks @socketubs
If I set a
gevent.pool.Pool
as a pool (with no size) for anSmtpEdge
for example, this boolean condition will always return'default'
instead of using myPool
.This is because of
Pool.__len__
which return how many greenlets thisPool
is tracking.