Source

CherryPy / _cpwsgiserver.py

Author Commit Message Labels Comments Date
Christian Wyglendowski
Created a branch for some WSGI related ideas that I have implemented.
Branches
cp3-wsgi-remix
Robert Brewer
Further CP3 fix for #541; urlparse now sets wsgi.url_scheme if available.
Branches
cherrypy
Robert Brewer
WSGI-related changes: 1. Changed Request.run from request_line arg to deconstructed args: method, path, query_string, and protocol. 2. Moved HTTP protocol checking from _cprequest to _cpwsgiserver. What was cherrypy.response.version is now cherrypy.request.protocol (tuple form of SERVER_PROTOCOL). request.version and response.version attributes removed. _cpwsgiserver now writes out server.protocol, not SERVER_PROTOCO…
Branches
cherrypy
Robert Brewer
CherryPyWSGIServer now clears its interrupt on start().
Branches
cherrypy
Robert Brewer
Better docstring for CherryPyWSGIServer.
Branches
cherrypy
Robert Brewer
Fix for #542 (_cpwsgiserver should concatenate multiple incoming headers).
Branches
cherrypy
Robert Brewer
Merged the reexec branch. Autoreload now uses exec instead of spawn, and therefore never runs more than one process at a time. There's a new test for autoreload in test_states.py. The state-management for the HTTP server is a mess, by the way. I only got test_states' KeyboardInterrupt test working by inlining the client threads. So wait() and interrupts, etc. only really work when there's a single master thread. This needs fixed.
Branches
cherrypy
Robert Brewer
Reverting [1165], [1182]. Turns out it wasn't necessary for encoded request headers, and only served to slow CP by about 5%.
Branches
cherrypy
Robert Brewer
Fix for missing FeedParser in Python 2.3.
Branches
cherrypy
Christian Wyglendowski
Fix for sneaky bug introduced in [1164].
Branches
cherrypy
Robert Brewer
Updated WSGI server to use email package instead of mimetools. This will allow encoded header values, for example.
Branches
cherrypy
Robert Brewer
Replaced http.HTTPDate with its clone rfc822.formatdate.
Branches
cherrypy
Robert Brewer
Reverting [1116] for now until tests can be made.
Branches
cherrypy
Robert Brewer
Attempt to re-use the _cpwsgiserver listener socket on UNIX platforms. Not tested.
Branches
cherrypy
Robert Brewer
Fix for #530 (CherryPyWSGIServer does not always initalize self.socket) in 2.x and trunk.
Branches
cherrypy
Robert Brewer
Added the required WSGI request.close() call (thanks amix!).
Branches
cherrypy
Robert Brewer
CP 3 initial checkin. Global filters have been replaced by request.hooks. Lots of renaming and reorg of modules.
Branches
cherrypy
Remi Delon
Preparing for 2.2.0-final release
Branches
cherrypy
Robert Brewer
Fix for #493 (connection not being closed properly).
Branches
cherrypy
Remi Delon
Preparing for 2.2.0rc1 release
Branches
cherrypy
Robert Brewer
Added meaningful prefixes to names of threads started by CP.
Branches
cherrypy
Robert Brewer
Final fix for #461 and #455: 1. There's a new _cpengine module which isolates the "app server" from the "HTTP server" state-management logic. _cpserver.Server inherits from _cpengine.Engine. The _cpengine module should remain clean so that it can be used with few changes in CP 3, at which point we can rewrite the http server API. 2. Fixed an issue with the native HTTP server--it wasn't truly restartable (closed but didn't r…
Branches
cherrypy
Robert Brewer
Implemented #461 (CPWSGIServer should route multiple apps). This allows you to instantiate a WSGIServer with multiple apps; however, _cpserver still needs to be upgraded to "do that for you". I'll do that in a separate commit.
Branches
cherrypy
Christian Wyglendowski
1. Removed request.wsgi_environ from _cphttpserver. 2. Added cherrypy.server.wsgi_app attribute to ease wrapping the CP wsgiApp with WSGI middleware. 3. Modified _cpwsgiserver to set SCRIPT_NAME to '' and to instead put the request path in PATH_INFO. Modified _cpwsgi to deal with this change. 4. Added standalone test for mounting the CP wsgiApp at an alternate SCRIPT_NAME. Not sure how best to integrate it into the test suite.
Branches
cherrypy
Remi Delon
Changing "2.2.0-beta" into "2.2.0beta"
Branches
cherrypy
Robert Brewer
Fix for #388 (problems when using "" for host on Unix).
Branches
cherrypy
Robert Brewer
Fix for exhausted worker threads in wsgi server.
Branches
cherrypy
Robert Brewer
Changed the raw tuple of "socket errors to ignore" to a global socket_errors_to_ignore list.
Branches
cherrypy
Robert Brewer
Fix for #388 (IPv6 support). While I was up to my elbows in the HTTP servers, I went ahead and: 1. Implemented MaxSize limits in _cphttpserver 2. Made PooledThreadServer a subclass of CherryHTTPServer, which consolidated a lot of features that each had which the other didn't, including AF_UNIX support. 3. Implemented AF_UNIX support for _cpwsgiserver. 4. Pulled the MaxSize logic out of _cpwsgiserver completely; the upshot is that both server interfaces can now use the same wrapper (now i…
Branches
cherrypy
Robert Brewer
Fix for #389. Yet another socket error to ignore.
Branches
cherrypy
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next