Package wsgitools :: Package scgi :: Module forkpool :: Class SCGIServer :: Class WorkerState
[hide private]
[frames] | no frames]

Class WorkerState

source code


state: 0 means idle and 1 means working. These values are also sent as strings '0' and '1' over the socket.

Instance Methods [hide private]
 
__init__(self, pid, sock, state)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, pid, sock, state)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • pid (int)
  • state (int)
Overrides: object.__init__