![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | Active |
def | Enqueue |
def | run |
Public Attributes | |
active | |
pending | |
Thread for handling HTTP requests. Instances needs to be able to respond with 503 when busy with other requests, therefore requests are accepted in the main thread and forwarded to the serving thread for processing. If the serving thread is busy with other requests and the max pending queue length is reached a 503 error is sent back. Args: http_server: Http server class handling the request. max_pending_requests: The maximum number of pending requests in the queue.
def google.appengine.tools.dev_appserver_multiprocess.HandleRequestThread.Active | ( | self | ) |
Indicates whether this thread is busy handling a request.
def google.appengine.tools.dev_appserver_multiprocess.HandleRequestThread.Enqueue | ( | self, | |
request, | |||
client_address | |||
) |
Adds the indicated request to the pending request queue.
def google.appengine.tools.dev_appserver_multiprocess.HandleRequestThread.run | ( | self | ) |
Takes requests from the queue and handles them.