13 Commits

Author SHA1 Message Date
Paul J. Davis
036f8b50d9 Major refactor of the configuration mechanics.
* All configuration and bootup is handled by the Application objects.

* There is now a strict ordering on the precedence of configuration
settings:

  1. Each option is given a default value of some sort in options.ini

  2. Any detectable framework configuration settings override the hard
     coded defaults for options. Currently, only Paster applications
     have support for this.

  3. Anything that is specified in a Gunicorn configuration file (by
     default gunicorn.conf.py) overrides what was possibly set by a
     framework specific configuration source.

  4. Anything specified on the command line reins supreme. The command
     line is the final authority on a given configuration option.
     Though, not all configuration options are available via command
     line.

* Configuration metadata is pulled from an options.ini. In the future I'll
use this to build the example gunicorn.conf.py and the config.rst file
in docs/site/config.rst.

I haven't tested the differences thoroughly. The next item on my agenda
is to figure out a way to start testing Gunicorn that doesn't make my
eyes bleed.
2010-05-19 13:39:37 -04:00
benoitc
562c9a2d70 revert previous change 2010-03-13 23:25:29 +01:00
benoitc
d21254edfc update readme 2010-03-13 23:21:42 +01:00
benoitc
68d1542c20 timeout and backlog can now be configured in config file. we should put
more options. Also the default of backlog could be 1024 instead of 2048.
2010-03-03 16:03:23 +01:00
benoitc
47f755df9d SERVER_PORT should be a string. spotted by lericson on irc. while i'm
here fix tcp bind
2010-02-22 17:02:25 +01:00
benoitc
386fbd6e13 fix umask so we use it only when creating socket. 2010-02-22 16:52:32 +01:00
Paul J. Davis
b995b5a672 REUSEADDR needs to be set before bind()'ing. 2010-02-20 16:39:49 -05:00
Benoit Chesneau
56e1d90ab6 close tmp in the right place. 2010-02-17 13:32:43 +01:00
Benoit Chesneau
95f6ce5618 remove useless print and revert last commit 2010-02-16 15:43:41 +01:00
Benoit Chesneau
13d9288d69 refactor config and put all in config object 2010-02-16 10:08:07 +01:00
Benoit Chesneau
330e945c7a license header 2010-02-15 14:54:21 +01:00
Paul J. Davis
e63bd7b843 Use getsockname for logging TCP socket info.
When a user wants the kernel to choose a random port we need to display
which port was chosen.
2010-02-15 14:53:32 +01:00
Paul J. Davis
61b31994d1 Refactored the socket creation code. 2010-02-15 14:53:32 +01:00