resp maybe None when pre_request raise exceptions
Support for python config file option in paster

It is now possible to specify a file with "config" as an application
configuration key in a paste deploy configuration file. This allows
paster applications to use the full range of gunicorn settings even
when using paste/pserve rather than gunicorn_paster.

Fixes #540.
typo
typo
Merge pull request #583 from pypeng/resp-maybe-none

resp maybe None when pre_request raises exceptions
[ggevent] Stop quickly and cleanly on ppid change

This change should improve interaction with reloaders and ensure that
ports are not stuck open if the arbiter gets a hard kill signal or
otherwise exits during any graceful or non-graceful shutdown.
Forward-compatibility for gevent graceful shutdown

This commit closes the loop on fd6c712.

Aforementioned commit fixed observable problems in my testing with
gevent 1.0 release candidates but the explanation given at the time
was curiously bogus. It came from a misreading of pools and servers
as used in the ggevent worker.

With this change, both versions of gevent should support graceful
and non-graceful shutdown.
[ggevent] Don't die when logging requests

Some requests, such as websocket requests, may not have headers.
Don't reload the paster app when run with pserve

Using gunicorn with paster command line causes the application to
load before gunicorn. In this case, there is no choice but to preload
the application. Document this fact.

Fixes #528.
After closing for error do not keep alive

Raise a StopIteration rather than returning so that the keep-alive
loop is terminated. If gunicorn has closed the socket there is no
sense in trying to read another request and it may cause spurious
EBADF errors to try.
responses 1xx, 204 and 304 should not force the connection to be closed

Only these types of responses are allowed to have empty body

fix #581
optimise response connection header check

Get the status code from the response once so we can use it to check the need
for the connection header later without parsing the string each time we need it.
we support python 3 since a while
support wsgi.file_wrapper in async workers
Close all the listener sockets
handle io.BytesIO object with file_wrapper

fix #595
Merge pull request #600 from matrixise/master

Close all the listener sockets
add -e/--env command line argunment

This command line argunment allows someone to pass an environement variable to
gunicorn:

	$ gunicorn --env FOO=1 test:app

With the command line above the application will be able to use the FOO
environment vatriable.
value can be None
remove useless lines in example