2048 Commits

Author SHA1 Message Date
Benoit Chesneau
837e943f78 update CONTRIBUTING doc
Tell to open a new ticket instead of commenting an older one. It makes
difficult to track and apparently notifications are not received.
2015-05-20 14:35:47 +02:00
Benoit Chesneau
3a2c437902 Merge pull request #1031 from jhekkanen/1030-fix
Fix self.nr usage in ThreadedWorker so that auto restart works as expected
2015-05-20 12:56:22 +02:00
Jarmo Hekkanen
826ef2d151 Fix self.nr usage in ThreadedWorker so that auto restart works as expected 2015-05-16 00:36:55 +03:00
Benoit Chesneau
cc7459d953 Merge pull request #1027 from benoitc/fix/clean-gitignore
clean gitignore
2015-05-12 09:10:43 +02:00
Benoit Chesneau
4185b2bd27 clean gitignore
people should be encouraged to use a global gitignore file.
https://help.github.com/articles/ignoring-files/

related to #1007
2015-05-12 08:55:25 +02:00
Berker Peksag
95b5f78ecb Backport urlparse.urlsplit from Python 2.7 to Python 2.6.
urlsplit doesn't reject invalid IPv6 addresses in Python 2.6.
2015-05-10 10:40:32 +03:00
Berker Peksag
945d2ecfc3 Parametrize invalid request tests. 2015-05-09 21:49:10 +03:00
Randall Leeds
72c8be56fc Add test for #1023 2015-05-09 20:46:31 +03:00
Berker Peksag
b951175c66 Raise InvalidRequestLine instead of ValueError if the line contains malicious data.
Closes #1023
2015-05-09 19:12:58 +03:00
Berker Peksag
a7354cf8fe Merge pull request #1010 from krallin/fix-statsd-py3
Fix statsd Logging in Python 3
2015-04-30 15:54:48 +03:00
Thomas Orozco
410bcfa6e1 Fix statsd logging to work on Python 3
Bytes must be passed to socket.send.

Update tests to ensure an actual socket is used, so that errors like
this can be caught in unit tests in the future.
2015-04-30 14:07:03 +02:00
Randall Leeds
5c98b3deb2 Merge branch 'toby-sullivan-hs-disable-sendfile-fix' 2015-04-29 17:40:50 -07:00
Toby Sullivan
11ee135b40 Fix argument to disable sendfile 2015-04-29 17:40:31 -07:00
Berker Peksag
2e0eb074fe Merge pull request #1019 from mgalgs/patch-1
design.rst: grammar
2015-04-29 09:17:52 +03:00
Mitchel Humpherys
52bfb7a0e7 design.rst: grammar
Currently, we introduce this document as a description
of "an" architecture of Gunicorn, which makes it sound
like this document describes one of many Gunicorn
architectures, which doesn't make a lot of sense.

Clarify the grammar by introducing the document as a
description of "the" Gunicorn architecture.
2015-04-28 22:04:48 -07:00
Berker Peksag
afdcfc6a63 Merge branch 'pr/1013' 2015-04-22 16:42:45 +03:00
Vlad Dragos
342512a128 Add the 'gthread' worker to the gunicorn.workers.SUPPORTED_WORKERS dictionary
Fixes #1011.
2015-04-22 16:41:45 +03:00
Berker Peksag
ba92af9acb Merge pull request #1004 from ryanpetrello/master
Retry socket binding up to five times upon EADDRNOTAVAIL.
2015-04-08 11:38:45 +03:00
Ryan Petrello
5e5e0fd6cf Retry socket binding up to five times upon EADDRNOTAVAIL. 2015-04-07 22:06:26 -04:00
Berker Peksag
4e4fe18a21 Fix more typos. 2015-03-27 16:18:41 +02:00
Berker Peksag
08cba365b3 Merge pull request #1000 from nikolas/patch-3
Fix typos in changelog
2015-03-27 16:16:56 +02:00
Berker Peksag
8964e97719 Merge pull request #999 from nikolas/patch-1
Fix typo in changelog
2015-03-27 16:16:38 +02:00
nikolas
460de33a33 Fix typos in changelog 2015-03-27 10:09:27 -04:00
nikolas
8273d77b04 Fix typo in changelog 2015-03-27 10:00:56 -04:00
s7v7nislands
80f95bdff4 update doc: using pip install replace using easy_install 2015-03-20 09:27:41 +02:00
Benoit Chesneau
83be046304 Merge pull request #994 from wong2/reloader
reloader should survive SyntaxError
2015-03-18 13:59:45 +01:00
wong2
81f65c2858 extract to a method 2015-03-18 19:18:15 +08:00
wong2
1f8d3b6c37 use self.cfg.reload 2015-03-18 18:52:54 +08:00
wong2
250d98f48a fix for review 2015-03-14 23:28:24 +08:00
wong2
d03891a470 reloader should survive SyntaxError 2015-03-11 20:46:44 +08:00
Randall Leeds
3bb4de4dff Actually expose the reloader
The reloader was not actually being stored on the worker.
2015-03-06 03:04:18 -08:00
Benoit Chesneau
cc12055baf fix doc link 2015-03-06 11:17:12 +01:00
Benoit Chesneau
2a9ccea7b5 fix typo 2015-03-06 11:09:05 +01:00
Benoit Chesneau
e5d0e1505f correct version is 19.3
since changes are added to the core, let's show it in versionning
2015-03-06 11:05:03 +01:00
Benoit Chesneau
e7a94744fa fix typos 2015-03-06 10:52:18 +01:00
Benoit Chesneau
ccf5a23b84 website : redirect doc link to 19.2.2 doc 2015-03-06 10:41:19 +01:00
Benoit Chesneau
39761603cd bump to 19.2.2 2015-03-06 10:32:35 +01:00
Benoit Chesneau
30177b879a make sure a listener is inheritable
fix #978
2015-03-06 10:17:26 +01:00
Benoit Chesneau
eb485d2134 make worker check_config method optionnal 2015-03-06 10:10:42 +01:00
Benoit Chesneau
e5f6b8024d add check_config instance method to workers
Add a method to check if config requirements are OK for a specific worker by
adding the `check_config` instance method. This method takes 2 arguments: the
config instance followed by the logger instance to log.

This method is right now used in the thread worker to display a warning in
the case it can't handle keep alive connections. This change is related to #979.
2015-03-06 10:01:31 +01:00
Benoit Chesneau
a459986cfd like in threaded workers let some time to the vm to release locks
applied similar change to 8936d8274770bec5fced09b28eb687b23bef20c1

fix #981
2015-03-06 08:51:14 +01:00
Benoit Chesneau
803a2d71b0 fix select timeout in sync worker with multiple connections
fix #983
2015-03-06 08:35:17 +01:00
Randall Leeds
5b3535bf64 Merge pull request #988 from siznax/fix-examples
fixed syntax errors in examples/gunicorn_rc.
2015-02-27 12:44:50 -08:00
siznax
b054b7e91c fixed syntax error in examples/gunicorn_rc. 2015-02-26 15:56:32 -08:00
Randall Leeds
5eff21ff0f Merge pull request #986 from berkerpeksag/remove-asserts
Raise TypeError instead of AssertionError.
2015-02-23 14:30:31 -08:00
Berker Peksag
d376b6f78a Raise TypeError instead of AssertionError.
assert statements will be removed if you run Python
in optimized mode (e.g. with -O flag).
2015-02-23 00:35:47 +02:00
Randall Leeds
b6430c36a9 Set self.reloader for hooks
This gives hooks that can access the worker access to the reloader,
useful for adding additional watched files.

Close #984
2015-02-17 12:46:02 -08:00
Berker Peksag
b8cdfaaccd Make Logger.loglevel a class attribute.
This way it will be easier to change log level of a custom
Logger class:

    class MyLogger(gunicorn.glogging.Logger):

        loglevel = logging.WARNING
2015-02-06 08:48:11 +02:00
benoitc
38a61e47fe bump site to 19.2.1 2015-02-04 14:47:56 +01:00
benoitc
48b36fb71f bump to 19.2.1 2015-02-04 14:43:57 +01:00