Added init_fun and stop_fun to poolboy's config proplist. These functions are used to init and stop workers as they're added and removed from a pool. These functions allow poolboy to pool processes which need additional processing before they are ready to be added or removed from the pool. The motivation for adding these functions is the case where poolboy is managing a pool of database connection processes. These processes need to load prepared statements immediately after they are created and before they are placed in the pool. Prior to adding these functions the only way to pool these processes was to wrap them in additional code to handle the post-connection initialization. These functions now permit poolboy to pool the database connections without wrapping them.
…ut (default: 5000) Some people value the let-it-fail philosophy which would allow the pool to fail when it can't send the event in time. Others may want to mimic a wholly blocking interface with infinity.
… length in all tests. Add user_death test to check that an orphaned worker is killed when a monitored user is reported 'DOWN'.
…'pool_size'). 2. Fixed bad behavior in case of checkout_blocks=true and long running workers.
Also, correctly restart workers when appropriate