Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix error on httpserver shutdown | James E. Blair | 2017-06-06 | 1 | -1/+5 |
| | | | | | | | | | If a worker thread takes longer than 0.5s to shut down, we try to kill it. However, if it manages to stop between the 0.5s timeout and the call to kill_worker, kill_worker will raise an exception and abort shutdown. Handle that case with an exception handler. | ||||
* | Don't display invalid error message when socket in use | Marc Abramowitz | 2015-05-11 | 1 | -2/+4 |
| | | | | | | | | | | | | | Previously, when the listening socket was already in use, this error message was displayed: ... File "/private/tmp/n/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", line 1106, in server_close self.thread_pool.shutdown(60) AttributeError: 'WSGIThreadPoolServer' object has no attribute 'thread_pool' We prevent this by checking if `self` has a `thread_pool` attribute before trying to reference it. Fixes issue #5 (https://bitbucket.org/ianb/paste/issue/5/invalid-error-message-when-the-socket-is) | ||||
* | Make utility function private: _get_headersBB-4 | Marc Abramowitz | 2015-04-30 | 1 | -4/+9 |
| | |||||
* | Make get_headers default to Python 3; fallback to Python 2 | Marc Abramowitz | 2015-04-30 | 1 | -4/+4 |
| | | | | as suggested by @haypo at https://bitbucket.org/ianb/paste/pull-request/22/fix-improper-commas-in-request-headers-in/diff#comment-6583636 | ||||
* | Make get all values of a header work on both Python 2 and 3 | Marc Abramowitz | 2015-04-28 | 1 | -1/+9 |
| | |||||
* | Fix improper commas in request headers in wsgi_environ | Marc Abramowitz | 2015-04-27 | 1 | -1/+1 |
| | | | | | | Revert from using `get` to `getheaders` method. fixes #4 | ||||
* | Merged in mfrobben/paste (pull request #21) | Victor Stinner | 2015-04-22 | 1 | -2/+1 |
|\ | | | | | | | Fix bad reference to iterator variable | ||||
| * | Fix pyflakes warnings | Victor Stinner | 2015-04-22 | 1 | -2/+1 |
| | | | | | | | | | | | | * Remove unused variables * Remove unused imports * Remove dead code | ||||
* | | Fix bad reference to iterator variable | Matthew Robben | 2015-01-16 | 1 | -1/+1 |
|/ | |||||
* | Python 3: fix paste.httpserver | Victor Stinner | 2014-03-19 | 1 | -25/+27 |
| | |||||
* | Python 3: Use six types for strings | Cyril Roelandt | 2014-03-18 | 1 | -1/+1 |
| | | | | | * Replace (str, unicode) with (six.binary_type, six.text_type) * Replace basestring with (six.binary_type, six.text_type) | ||||
* | Python 3: use six.reraise() to re-raise an exception with the traceback | Cyril Roelandt | 2014-03-18 | 1 | -1/+2 |
| | |||||
* | Python 3: use new names of standard library modules | Cyril Roelandt | 2014-03-18 | 1 | -2/+3 |
| | | | | Use "try/except ImportError" to try Python 2 and Python 3 names. | ||||
* | Import StringIO so it can be used.stringio | matt | 2013-01-28 | 1 | -0/+1 |
| | |||||
* | Fixed parsing of URL paths starting with multiple slashes.double_slash_at_start_of_path_fix | Richard Mitchell | 2012-08-02 | 1 | -1/+2 |
| | |||||
* | Always wrap wsgi.input with LimitedLengthFile, even when using the ↵ | Ian Bicking | 2011-08-17 | 1 | -9/+8 |
| | | | | ContinueHook. Also always use ContinueHook when there is Expect: 100-Continue, even if the server is supposed to be HTTP/1.0 (because the client wouldn't know the server version when it sends the request; curl notable stalls waiting for a continue) | ||||
* | Allow server_address tuples that are longer (specifically for IPv6 support: ↵ | Ian Bicking | 2010-09-02 | 1 | -5/+4 |
| | | | | http://trac.pythonpaste.org/pythonpaste/ticket/275) | ||||
* | do a proper read with 100 Continue | ianb | 2009-09-02 | 1 | -1/+1 |
| | |||||
* | Fix paste.httpserver on py2.6 (#314) | ianb | 2008-11-15 | 1 | -0/+6 |
| | |||||
* | Re-raise KeyboardInterrupt | ianb | 2008-09-08 | 1 | -0/+3 |
| | |||||
* | make seek method conditional | ianb | 2008-08-11 | 1 | -1/+3 |
| | |||||
* | Adding request_queue_size option to increase socket queue for Paste#http server. | bbangert | 2008-06-20 | 1 | -11/+26 |
| | |||||
* | Fix ticket #249 | maluke | 2008-04-13 | 1 | -7/+7 |
| | |||||
* | allow binding to port 0 | pjenvey | 2008-03-07 | 1 | -1/+1 |
| | |||||
* | Typo | ianb | 2008-02-19 | 1 | -1/+1 |
| | |||||
* | Do not ignore wsgi.input readline size argument (which can lead to lots of ↵ | ianb | 2008-02-12 | 1 | -1/+4 |
| | | | | memory used) | ||||
* | Use threadsafe connection class, to avoid some https errors (#211) | ianb | 2007-12-17 | 1 | -2/+9 |
| | |||||
* | don't lower-case headers going out, send them as-is | cce | 2007-11-08 | 1 | -3/+3 |
| | |||||
* | minor tweak (appears to be backward compatible) to permit use with SSL chains | cce | 2007-09-19 | 1 | -1/+1 |
| | |||||
* | reverting FreeBSD threadpool disabling | ianb | 2007-09-04 | 1 | -5/+1 |
| | |||||
* | fix more possible thread errors, followup to r6843 | pjenvey | 2007-08-13 | 1 | -5/+8 |
| | |||||
* | Fix possible thread error, when a thread finishes while add_task is looking ↵ | ianb | 2007-08-13 | 1 | -2/+2 |
| | | | | at it | ||||
* | being pedantic, trying to find source of memory leak | cce | 2007-08-09 | 1 | -0/+1 |
| | |||||
* | The threadpool code just doesn't work on FreeBSD. | cce | 2007-08-04 | 1 | -1/+7 |
| | |||||
* | Don't read past the end of the line with LimitedLengthFile.readline (from ↵ | ianb | 2007-06-28 | 1 | -3/+1 |
| | | | | Michael van Tellingen) | ||||
* | docstring misformatting; added news link | ianb | 2007-06-26 | 1 | -1/+1 |
| | |||||
* | Cleaned up the worker lifecycle logic, fixing some bugs in how workers are ↵ | ianb | 2007-04-27 | 1 | -34/+48 |
| | | | | tracked. Track why worker threads are started, and include this information in the logs. | ||||
* | Fix the way max_requests works, so that we don't think the idle worker ↵ | ianb | 2007-04-26 | 1 | -1/+7 |
| | | | | thread is still around (which caused the *real* worker threads to be culled, leaving only ghost workers who don't actually do any work, and thus the server would freeze) | ||||
* | Add a better logging message about the thread worker polling | ianb | 2007-04-26 | 1 | -0/+23 |
| | |||||
* | Don't register the cleanup until the rest of the threadpool constructor has ↵ | ianb | 2007-04-26 | 1 | -3/+2 |
| | | | | successfully run | ||||
* | Add information about proxy requests | ianb | 2007-04-15 | 1 | -1/+5 |
| | |||||
* | Added a parameter to the threadpool: max_requests, which is the maximum ↵ | ianb | 2007-04-12 | 1 | -12/+25 |
| | | | | number of requests to process in a worker thread before killing that thread. This should resolve problems with long-lived threads, as no thread lives too terribly long with this on. Also, turn the threadpool back on by default. And turn LimitedLengthFile back on when it is not an SSL connection | ||||
* | - commeting out LimitedLengthFile | cce | 2007-03-29 | 1 | -2/+10 |
| | | | | | | | - making threadpool not be the default Once issues with these can be fixed, we could restore LimitedLengthFile and perhaps make threadpool the default | ||||
* | Fixed logic error where we'd spawn extra workers, then immediately cull ↵ | ianb | 2007-03-29 | 1 | -1/+7 |
| | | | | them. Now we wait a little while after spawning workers to cull them | ||||
* | adding comment about address_string() | cce | 2007-03-27 | 1 | -0/+3 |
| | |||||
* | I think one meant min, not max here; if the read function asked | cce | 2007-03-21 | 1 | -1/+2 |
| | | | | | | for 16 bytes, and 64 are available, you should only return 16, not 64. This is important due to MIME types (where sub-chunks are read in via content-length on each sub-item). | ||||
* | Give a better error when start_response isn't called; give a Content-Length ↵ | ianb | 2007-03-20 | 1 | -2/+8 |
| | | | | so that the connection is closed properly on error | ||||
* | fix some typos, from pythy | ianb | 2007-03-17 | 1 | -3/+3 |
| | |||||
* | Changed default for kill_thread_limit; reformat | ianb | 2007-03-12 | 1 | -10/+11 |
| | |||||
* | Don't start workers until everything is initialized | ianb | 2007-03-11 | 1 | -2/+2 |
| |