348 Commits

Author SHA1 Message Date
Randall Leeds
4e20f606f1 fix inconsistencies with urlparse lib 2010-07-01 13:15:15 +08:00
benoitc
46e8002ffc Fix a bug spotted while testin parser in restkit. 2010-06-26 22:53:18 +02:00
benoitc
a461817309 fix websocket with protocol 076. Fix from tom on irc. Thanks! 2010-06-24 16:20:48 +02:00
benoitc
9bc19c2c86 wsgi.multiprocess depends on number of workers. 2010-06-22 19:24:43 +02:00
benoitc
2f06305ce4 fix wsgi env. 2010-06-22 14:05:11 +02:00
benoitc
6121ace7e7 QUERY_STRING can't be none. 2010-06-21 12:44:48 +02:00
benoitc
d5f2b5358a Refactored the configuration system.
Some preliminary work on refactoring the configuration system to
allow for some backwards compatibility with Python 2.4.
2010-06-17 19:45:51 -04:00
benoitc
e1647837d4 some errors spotted by pyflakes 2010-06-17 00:43:48 +02:00
benoitc
d5b76ac651 socket.from_fd return a _socket.socket object instead of socket.socket
(at least on py26). Instead of testing type of instance, just test if
the source has a "recv" method. Fix bug in usr2 with new parser.
2010-06-16 11:30:36 +02:00
benoitc
5b860b532a return all the data when reading is finished in EOFReader 2010-06-09 16:07:38 +02:00
benoitc
c52e30bcef fix content length. Test iff size == 0 before we start the loop. 2010-06-09 09:12:27 +02:00
Paul J. Davis
0beb39412d Remember to remove debug logging. 2010-06-07 20:47:44 -04:00
Paul J. Davis
37e909767a Refactored sizing in body readers. 2010-06-07 20:46:01 -04:00
Paul J. Davis
5af1273fc2 Added more valid request tests.
Found and fixed a couple read and readline related bugs.
2010-06-03 16:11:18 -04:00
benoitc
ae025cd22b put back websocket support with new http parser 2010-06-03 16:11:18 -04:00
Paul J. Davis
27cc404f1f Imported simplehttp request tests. 2010-06-03 16:11:17 -04:00
benoitc
516adafcbe fix some errors & add headers. unitests still broken 2010-06-03 16:11:17 -04:00
Paul J. Davis
8ddf3e856e Fix up a couple minor bugs. 2010-06-03 16:11:16 -04:00
Paul J. Davis
0d32ab1356 Initial steps for importing simplehttp. 2010-06-03 16:11:16 -04:00
Paul J. Davis
f02cbc10ed Playing with simplehttp. 2010-06-03 16:10:27 -04:00
benoitc
4a519f9d61 fix content length 2010-06-03 16:09:04 -04:00
benoitc
d9a2579613 naive working integration of simplehttp parser. async worker is slower
than the non async actually for unkown reason and slower than with old
parser.
2010-06-03 16:09:04 -04:00
benoitc
e06b44a28f fix issue #51. Support https schema. Pas an Http header to gunicorn :
X-Forwarded-Protocol=https , X-Forwarded-Ssl=on
2010-05-26 16:27:12 +02:00
Paul J. Davis
6ffbe54734 Added unit tests for new Config code. 2010-05-21 22:54:22 -04:00
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
0c26280486 response has no socket object but request has. bug detected while
running longpoll test.
2010-04-22 22:02:44 +02:00
benoitc
5b2f98fca4 fix erros spotted by pyflakes 2010-04-22 19:41:29 +02:00
Paul J. Davis
0c935d06c7 Got the Sync and Eventlet workers running. 2010-04-15 21:20:17 -04:00
Paul J. Davis
51f1f22665 Refactoring worker code.
Also went through gunicorn.main lightly.
2010-04-15 20:08:28 -04:00
benoitc
2e40f48d05 don't patch dns for now until it's fixed upstream. Create strange
behaviour with httplib and urllib2. spotted by @greut on irc, thanks!
2010-04-14 11:27:55 +02:00
benoitc
7f97653bd4 fix issue #36. Thanks. 2010-04-03 18:05:26 +02:00
Paul J. Davis
ff47d22488 Fix bug when responses have no body.
Thanks to Chris Dent for noticing this.
2010-04-01 16:28:09 -04:00
benoitc
4f54c06121 make specific case for websockets 2010-03-26 15:53:53 +01:00
benoitc
c1aec22097 fix response 2010-03-23 21:09:15 +01:00
benoitc
d192b1e653 no need to close the socket here 2010-03-23 21:02:24 +01:00
Paul Davis
1d326f88c4 Fixed async responses. 2010-03-23 15:54:22 -04:00
Paul Davis
e4b7263314 Fix async req/resp handlers. 2010-03-23 15:40:14 -04:00
Paul J. Davis
2242be27cf Silly typo prevented response header parsing. 2010-03-23 15:10:52 -04:00
Paul J. Davis
014d711bd7 Fix PEP 333 compliance for the write callable. 2010-03-23 14:58:10 -04:00
benoitc
9f572bc8ea add headers_sent guard. 2010-03-21 10:30:57 +01:00
benoitc
514a0ba0e3 change the way we handle last chunk, on't break but instead test if last
was an empty string. So we allows idiot content to send empty string at
first.
2010-03-19 10:00:15 +01:00
benoitc
771d44902a use formatted title so we make sure all browsers will correctly read
them
2010-03-18 08:58:05 +01:00
benoitc
0781caadab merge grainbows & gunicorn 2010-03-17 00:18:16 +01: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
f53532a92e always use TeeInput 2010-03-12 14:15:21 +01:00
benoitc
1ee01152b3 fix chuynked response 2010-03-12 00:52:21 +01:00
benoitc
5f5b67da96 fix possible race condition when socket.error isn't raised but remote
connection was closed.
2010-03-08 16:57:32 +01:00
benoitc
4873b41b33 use cstringio 2010-03-08 12:14:47 +01:00
benoitc
6ac5faf763 fix chunked response 2010-03-06 23:40:59 +01:00