Home | Trees | Indices | Help |
---|
|
object --+ | pool.PoolInterface --+ | EventletPool
Eventlet pool to manage connections. after a specific timeout the sockets are closes. Default timeout is 300s.
To use restkit with eventlet:
import eventlet eventlet.monkey_patch(all=False, socket=True, select=True) from restkit import request from restkit.ext.eventlet_pool import EventletPool pool = EventletPool() r = request('http://openbsd.org', pool_instance=pool)
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Initialize EventletPool :param max_connexions: int, number max of connections in the pool. Default is 4 :param timeout: int, number max of second a connection is kept alive. Default is 300s.
|
Get connection for (Host, Port) address :param address: tuple (Host, address)
|
release socket in the pool :param address: tuple (Host, address) :param socket: a socket object
|
close all sockets in the pool for this address :param address: tuple (Host, address)
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Mar 1 20:43:08 2010 | http://epydoc.sourceforge.net |