2373 Commits

Author SHA1 Message Date
Hasan Ramezani
3b853b0455 Document GUNICORN_CMD_ARGS (#1425) 2017-01-13 12:08:52 +03:00
Saeed Gharedaghi
ab444eed50 change __dict__ to vars function
Back gunicorn/argparse_compat.py gunicorn/six.py files changes

Back run_gunicorn.py file changes
2017-01-11 23:07:20 +03:00
Hasan Ramezani
3f9eace246 Add ability to pass settings to GUNICORN_CMD_ARGS. (#1385) 2017-01-08 16:41:28 +03:00
David McInnis
7dd8793dcf only have essential nginx.conf settings (#1424) 2017-01-08 04:03:08 +03:00
benoitc
467834ca0c bump to 19.7 2017-01-08 01:41:33 +01:00
benoitc
f0f44cddd3 fix comment 2017-01-08 01:40:18 +01:00
Benoit Chesneau
1db805c7f6 no fds are given by default in gunicorn
fix #1423
2017-01-05 22:34:34 +01:00
vishesh92
c54426c1e4 Minor fixes in docs and doc's code style (#1361) 2016-12-28 19:02:32 +03:00
Randall Leeds
0be7996885 Refactor socket activation and fd inheritance (#1310)
Track the use of systemd socket activation and gunicorn socket inheritance
in the arbiter. Unify the logic of creating gunicorn sockets from each of
these sources to always use the socket name to determine the type rather
than checking the configured addresses. The configured addresses are only
used when there is no inheritance from systemd or a parent arbiter.

Fix #1298
2016-12-27 14:01:20 -08:00
Randall Leeds
8dbb2963b2 allow --reload without any value (#1416)
The documentation suggests that the value is optional, but without
this change it is not.
2016-12-26 18:12:17 -08:00
崔志萍
ee47b0030d threadWorker cancelled request should decrease nr_conns (#1387) 2016-12-23 16:02:50 -08:00
Randall Leeds
bc5ae5d457 format boot tracebacks properly with reloader (#1415)
fix #1408
2016-12-23 10:56:07 -08:00
Berker Peksag
4933aedede Sync settings docs with gunicorn/config.py 2016-12-22 22:02:44 +03:00
Berker Peksag
712a502d62 Cleanup trailing whitespaces 2016-12-22 22:00:46 +03:00
Berker Peksag
8fe132b39c Tweak WorkerTmpDir docs 2016-12-22 22:00:27 +03:00
Bob.Haddleton
9a9e3acb2c Update Boom references to Hey to reflect project name change 2016-12-22 07:52:21 +03:00
Stefaan Ghysels
9430742ba6 add support for eventlets _AlreadyHandled object (#1406)
add support for eventlets _AlreadyHandled - issue 1210 - Response object has no attribute status_code
2016-12-21 20:48:07 +01:00
Philipp Saveliev
cc4620fb5b docs: a warning for disk-backed --worker-tmp-dir #1305 (#1329)
* docs: a warning for disk-backed --worker-tmp-dir #1305

* docs: move os.fchmod issue solution to FAQ

* docs: improve worker_tmp_dir setting docs
2016-12-20 15:20:55 -08:00
Adnane Belmadiaf
ce87a9bd40 Make sure load_wsgi() is called after starting the reloader (#1399)
Fixes #1397
2016-12-12 17:16:53 +03:00
Tim Graham
ab81ae3b4d Add RuntimeDirectory to systemd service
Without this /run/gunicorn isn't created.
2016-11-26 17:04:44 +03:00
Berker Peksag
ca64a57c77 Remove pypy3 from Travis
The new version of pip won't support Python 3.2
and we will need to tweak our .travis.yml and
tox.ini in order to run tests on PyPy 3.

However, since we already removed Python 3.2
from Travis, I decided to remove PyPy 3 as well
(it still targets Python 3.2)
2016-11-23 01:44:49 +03:00
David McInnis
ea741854ec fixed a few typos and improved clarity for systemd docs (#1398) 2016-11-23 01:40:02 +03:00
Jonas Haag
a713fa9a65 Fix Python 3.5 on Travis typo 2016-11-18 14:27:35 +03:00
Your Name
a912e305c9 Reject requests like "GET / HTTP/1a1"
Numbers must be separated by dot. This makes life
a little bit harder for attackers who would like to inject specially crafted packets after GET / (e.g. in nginx there are sometimes regular expressions like (?P<action>[^.]).html
2016-11-04 21:16:01 +03:00
David McInnis
4ceb1e4a00 Docs/system d change (#1376)
* expanded and clarified systemd deployment instructions

* fixed typo

* fixed typo

* fixed my stuff going past the 80-char page-width
2016-10-28 08:37:10 +02:00
Mark Adams
6eb01409da Fix validate_reload by returning the validated value (#1378)
* Fix validate_reload by returning the validated value

When '--reload=RELOADER_TYPE' was implemented, `validate_reload()` was
added but in one of the last refactorings, it lost the return statement
at the end of the function. As a result, the '--reload' config value was
totally broken.

This resolves the issue by adding the missing return.

* Fix tests by changing --reload to always require an argument

- '--reload' always requires an argument now
- Added 'auto' as the default value for '--reload'
2016-10-28 08:35:24 +02:00
Benoit Chesneau
07f62e26f3 Merge pull request #1369 from mark-adams/1368-inotify-reloader
Add InotifyReloader and updated '--reload {poll,inotify}' configuration option
2016-10-25 15:43:51 +02:00
Mark Adams
b98205f896 Update documentation to indicate inotify requirement for reloader 2016-10-25 08:29:05 -05:00
Mark Adams
92d48256e4 Modify 'reload' config to be more consistent with existing API
--reload = Runs the reloader with inotify if available and falls back on
           FS polling.
--reload=inotify = Forces the reloader to run with inotify
--reload=poll = Forces the reloader to use FS polling
2016-10-24 11:39:10 -05:00
Mark Adams
64b26ef766 Fix #1368 by adding InotifyReloader and 'use-inotify' configuration option
Currently, '--reload' uses FS polling to find out when files have
changed. For some time, the Linux kernel has had a feature called
inotify that allows applications to monitor for FS events without
polling.

This commit adds a new 'use-inotify' configuration option that will
cause gunicorn to use the new 'InotifyReloader' instead of the default
'Reloader' when 'reload' is enabled.

Using inotify can result in lower CPU consumption by gunicorn especially
when working with virtualized filesystems or environments with a large
number of watched files / directories.
2016-10-17 21:21:37 -05:00
Roy Williams
b4c41481e2 Fix leak of duplicate file descriptor for bound sockets.
`socket.fromfd` does not close the original file descriptor, so we have to explicitly close it to avoid a leak.

See also:
http://bugs.python.org/issue10099
2016-10-18 00:15:40 +03:00
Benoit Chesneau
4416707890 Merge pull request #1326 from pombredanne/patch-1
Include LICENSE for built wheels #1322
2016-10-16 17:49:58 +02:00
Kirubakaran Athmanathan
bfc807ac1e Use SO_REUSEPORT if available (#1344) 2016-10-15 15:18:49 +03:00
David McInnis
1853071dc2 fixed incorrect gunicorn.service file for SystemD (#1357)
* fixed incorrect gunicorn.service file for SystemD

* made instructions a little less ambiguous

* made documentation more generic
2016-10-13 13:01:40 -07:00
ammgws
2d11e5c7cc Fixed mistake in systemd section (#1363)
example starts the wrong service name
2016-10-07 14:50:28 -07:00
Patrick Browne
915c534eab feat(import_app): print original exception on AppImportError (#1334)
* feat(import_app): print original exception on AppImportError
2016-10-03 12:52:20 -07:00
Berker Peksag
6dbbaa595b Modernize CherryPy example 2016-09-17 13:23:30 +03:00
Vicky
e549835c54 Remove outdated frameworks from examples/frameworks/
Closes #1346
2016-09-17 13:17:48 +03:00
Tobias Gustafsson
70cfb0d818 Remove upper limit on max header size config (#1313)
Fixes #1306
2016-09-17 12:49:05 +03:00
zhulongcheng
2b839ca144 Fix typo in news.rst (#1351) 2016-09-11 11:56:29 +03:00
Berker Peksag
9021cf80bb Remove trailing comma from ConfigCheck.cli 2016-08-21 13:18:55 +03:00
Philippe Ombredanne
4c8cadce25 Include LICENSE for built wheels #1322 2016-08-08 19:13:20 +02:00
John Bachir
b3f1c5cc29 clarify language regarding undefined time tasks (#1316) 2016-07-30 21:59:30 -07:00
Berker Peksag
fdd5276a4c Update --access-logfile documentation
This is a follow up of 34af3f8e926adeebd8a73f987ca36d2f696aef05.
2016-07-28 22:04:26 +03:00
Benoit Chesneau
f875fd8754 Merge pull request #1314 from suriya/patch-1
Document that --access-logfile - writes to stdout
2016-07-28 12:20:38 +02:00
Suriya Subramanian
34af3f8e92 Document that --access-logfile - writes to stdout 2016-07-28 12:54:58 +05:30
benoitc
4bb2925aa4 fix compatibility with python 2.6 2016-07-27 10:22:09 +02:00
benoitc
df84d3d8fe make sure access logs are printed to stdout
logging.StreamHandler deault to sys.stderr, so make sure access log are printed to stdout when choosing "-" by forcing the stream.

Note: access logs were printed to stdout by default when using the config file.

fix #1184
2016-07-27 09:29:56 +02:00
Randall Leeds
13d193736d fix typos in comments 2016-07-23 15:31:16 -07:00
Randall Leeds
fa8b8ebda9 make log message punctuation on reexec consistent 2016-07-22 16:53:41 -07:00