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
Randall Leeds
da007d0b15
remove unused import
2016-07-18 22:52:44 -07:00
Randall Leeds
77eea1445d
add versionadded to new paste global option
2016-07-16 12:34:17 -07:00
Randall Leeds
b524b02c42
fix typo
2016-07-16 12:21:27 -07:00
Moriyoshi Koizumi
d468d5b592
Add --paste-global-conf option ( #1304 )
...
* Add --paste-global-conf option so users can pass arbitrary values to the PasteDeploy entrypoint from cli
* Reflect the suggestions: `--paste-global-conf` => `--paste-global` and adding more description in the docstring.
2016-07-16 12:15:23 -07:00
Randall Leeds
28c12b2668
Merge pull request #1297 from gfreezy/patch-1
...
Update signals.rst
2016-06-26 17:46:26 -04:00
Alex.F
0d5e9bfe5e
Update signals.rst
2016-06-23 21:35:04 +08:00
Benoit Chesneau
ac708f5e44
Merge pull request #1291 from lyft/add-environ-variables-to-logger
...
Add environment variables to gunicorn access log format
2016-06-04 02:18:11 +02:00
Vivian Ho
8e3e545321
updated docs
2016-06-03 14:30:37 -07:00
Benoit Chesneau
5cc3d104cf
Merge pull request #1290 from benoitc/fix/1287
...
initialize the group access list for a worker when initgroups is set
2016-06-03 10:20:49 +02:00
Vivian Ho
b034c81654
merge
2016-06-02 10:52:43 -07:00
benoitc
cb84e6ed11
initialize the group access list for a worker when initgroups is set
...
Allows the possibility to initialise the group access list when needed to separate privileges
fix #1287
2016-05-31 18:26:41 +02:00
benoitc
4d845f2ae4
fix pep8 warnings
2016-05-31 15:48:39 +02:00
Berker Peksag
0d00a280bd
Python 2.6 is the minimum supported version now
2016-05-30 11:01:43 -07:00
Adam Chainz
f722a6eb65
Convert readthedocs link for their .org -> .io migration for hosted projects ( #1286 )
...
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/ ) ‘Securing subdomains’:
> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.
Test Plan: Manually visited all the links I’ve modified.
2016-05-29 11:46:37 -07:00
Randall Leeds
2855d4f661
Merge pull request #1281 from edgarcosta/silent
...
timeout setting, rewrote what it means for a worker be silent
2016-05-26 18:29:51 -04:00
edgarcosta
2f0e99e71d
timeout setting, what it means to be silent
2016-05-23 22:27:08 -04:00
Benoit Chesneau
eba1b5a822
Merge pull request #1279 from edmorley/docs-fixes
...
Docs: Spelling corrections & markup tweaks
2016-05-23 20:28:41 +02:00
Ed Morley
c4e0e7775e
Docs: Spelling corrections & markup tweaks
...
Fixes the changelog bullets added for #1252 , as well as a number of
spelling corrections and markup improvements.
2016-05-23 17:22:50 +01:00
benoitc
0b84f070cf
19.6 has been released.
2016-05-23 17:30:23 +02:00
benoitc
4a04195975
update 19.6.0 changelog
2016-05-21 11:21:53 +02:00
benoitc
37be319f06
add a not in FAQ about the SENDFILE environment var
2016-05-21 11:12:11 +02:00
benoitc
d5a07ce4ff
Allow disabling sendfile via an environment variable
...
add support for the `SENDFILE` environment variable.
fix #1252
2016-05-21 11:06:51 +02:00
Benoit Chesneau
fed56176e5
Merge pull request #1277 from benoitc/fix/1258
...
gthread: handle removed socket in the select loop
2016-05-21 10:53:20 +02:00
Benoit Chesneau
be70754ede
Merge pull request #1276 from benoitc/fix/1271
...
add --capture-output setting
redirect stdout/stderr to logfile
2016-05-21 10:51:41 +02:00
benoitc
49ebee1386
redtirect stdout/stderr to logfile
...
Add the new setting `--caapture-output` to capture output from stdout/stderr to the current log file.
fix #1271
2016-05-21 10:50:32 +02:00
benoitc
44d3ac8451
gthread: handle removed socket in the select loop
...
when it happend there are good chance the socket has been removed because it timeouted on the other end. So ignore it.
fix #1258
2016-05-21 00:13:57 +02:00