161 Commits

Author SHA1 Message Date
benoitc
5cc19f7037 allow changin worker user/group in non daemon mode. fix authorization of
unix socket too
2010-02-15 15:27:29 +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
Benoit Chesneau
2e170bb3ad fix paster serve 2010-02-15 14:43:39 +01:00
Benoit Chesneau
d00712da2e while we are here just parse all the address in the conf file. so we
could have unix socket support in paster app too by just passing the
host
2010-02-15 14:41:13 +01:00
Benoit Chesneau
7036e424bb reuse code 2010-02-15 14:35:25 +01:00
Benoit Chesneau
df74d1679f useless spaces 2010-02-15 14:05:15 +01:00
Benoit Chesneau
53814c1af4 add user/group option. uid/gid or username/groupname can now be passed
in daemon mode.
2010-02-15 14:03:48 +01:00
benoitc
07d252eb4d add umask option 2010-02-15 11:30:15 +01:00
Benoit Chesneau
2d760e492d apply patch from lericson 2010-02-12 14:37:55 +01:00
Benoit Chesneau
d8baf9b30e fix #10 & #11. thanks 2010-02-12 10:22:22 +01:00
jbergstroem
b9482801f6 Fix typos 2010-02-10 16:59:23 -05:00
Paul J. Davis
588b48b2cd Comma separate repeated request headers.
RFC 2616 says that only headers that are allowed to have comma separated
values are acceptable for repetition. Though it doesn't specify an error
condition for that situation. I reckon the cleanest way would be to list
the headers that are acceptable for repetition, and return a 400 Bad
Request.
2010-02-10 10:55:09 -05:00
Benoit Chesneau
61840c3707 response headers should be a tupple. 2010-02-10 16:07:05 +01:00
Benoit Chesneau
54357b3487 fix logging in file in daemon mode. error spotted by @jbergstroem and
fixed with help of @asenchi
2010-02-10 12:04:06 +01:00
Benoit Chesneau
b0250cbb5e test first with args if any then use the default. While I'm here remove
caps that was hurting my eyes.
2010-02-10 10:41:32 +01:00
Benoit Chesneau
029a861fd0 fix usages messages 2010-02-10 10:18:08 +01:00
Benoit Chesneau
a7f3d941a3 add possibility to set the settings.py path in gunicorn_django command.
(allows you to use different files too)
2010-02-10 10:10:40 +01:00
Benoit Chesneau
593051a43d only looks for settings.py after we set the command line options 2010-02-10 09:54:01 +01:00
Benoit Chesneau
f071e7d4e1 fix version handling 2010-02-09 23:05:12 +01:00
Benoit Chesneau
0d0367361f no need for this change now 2010-02-08 18:51:16 +01:00
Benoit Chesneau
652f8d2734 fix USR2/HUP handling. spotted by @jbergstroem on irc, thanks ! 2010-02-08 18:14:12 +01:00
Benoit Chesneau
cc060fbd0e little bump 2010-02-03 19:46:14 +01:00
Benoit Chesneau
eb0414e02c console override ini 2010-02-03 19:43:45 +01:00
Benoit Chesneau
bfbac6fa4c fix gunicorn_paster 2010-02-03 19:41:14 +01:00
Benoit Chesneau
2d10aa1f83 var changed 2010-02-03 17:48:13 +01:00
Benoit Chesneau
9928aca73f fix indent 2010-02-03 17:09:35 +01:00
Benoit Chesneau
fba0342536 we don't want that. 2010-02-03 16:38:18 +01:00
Benoit Chesneau
859e74be40 display an error when we can't connect and exit 2010-02-03 16:37:23 +01:00
Benoit Chesneau
31ebc40258 reap workers here. 2010-02-03 16:27:21 +01:00
Benoit Chesneau
43f4dd4109 fix 2010-02-03 16:17:17 +01:00
Benoit Chesneau
b681b11ed4 typo sigh. no cookie for me 2010-02-03 16:15:13 +01:00
Benoit Chesneau
b3496bcbd8 None != False 2010-02-03 16:13:35 +01:00
Benoit Chesneau
5796651a78 fix client_addr following observation of @dacisp and reading
http://en.wikipedia.org/wiki/X-Forwarded-For .
2010-02-03 16:09:31 +01:00
Benoit Chesneau
c3801b5283 some changes after review of @davisp 2010-02-03 15:54:14 +01:00
Benoit Chesneau
fd4e13511d reùove empty lines 2010-02-03 15:07:57 +01:00
Benoit Chesneau
92a0a2582d bump version number and add it to usage 2010-02-03 15:02:05 +01:00
Benoit Chesneau
c6c704346a better help line 2010-02-03 14:49:42 +01:00
Benoit Chesneau
b7903be3f3 handle server_address and client_address in all connections types. 2010-02-03 14:38:55 +01:00
Benoit Chesneau
0935ab3344 branch to handle unix sockets 2010-02-03 13:35:32 +01:00
Benoit Chesneau
e804f97f5e we don't need this one. 2010-02-03 12:07:30 +01:00
Benoit Chesneau
957496304c fix #8. 2010-02-03 12:01:45 +01:00
Benoit Chesneau
f3822a7f2f typo 2010-02-03 10:50:40 +01:00
Benoit Chesneau
c7bbe77a72 timeout should be a float. while i'm here be brutal like a ctrl-c. 2010-02-03 10:43:32 +01:00
Benoit Chesneau
a57e2ec7e6 timeout could be None. 2010-02-03 10:41:30 +01:00
Benoit Chesneau
6c405b9d14 fix issue #7. thanks! 2010-02-03 10:32:28 +01:00
Benoit Chesneau
614a5d25c1 replace /bin/* py setup entry-points 2010-02-02 18:23:37 +01:00
Benoit Chesneau
ea9ccf0da1 create temporary file in target dir 2010-02-01 22:21:11 +01:00
Benoit Chesneau
6ecbd9bff8 qfix 2010-02-01 19:53:34 +01:00