]>
git.ipfire.org Git - thirdparty/tornado.git/log
Alek Storm [Thu, 18 Aug 2011 06:01:50 +0000 (06:01 +0000)]
Move 'cookies' property from RequestHandler to HTTPRequest
Ben Darnell [Sun, 14 Aug 2011 21:38:42 +0000 (14:38 -0700)]
Add static_handler_class application setting, and move most of static_url
into the handler class where it can be overridden.
Ben Darnell [Sun, 14 Aug 2011 21:20:09 +0000 (14:20 -0700)]
Add tests for static file functionality
Ben Darnell [Sun, 14 Aug 2011 19:03:07 +0000 (12:03 -0700)]
In case the callback_uri and the uri that called authenticate_redirect
are different, use the callback as the openid realm.
Ben Darnell [Sun, 14 Aug 2011 18:40:10 +0000 (11:40 -0700)]
Release note updates
Ben Darnell [Sun, 14 Aug 2011 17:55:10 +0000 (10:55 -0700)]
Clean up after the _check_file refactoring.
Ben Darnell [Sun, 14 Aug 2011 17:38:52 +0000 (10:38 -0700)]
Add the option to run application hooks before autoreloading.
Closes #331
Ben Darnell [Sun, 14 Aug 2011 16:53:55 +0000 (09:53 -0700)]
Remove tox config for pypy with mysql.
The module builds on pypy, but doesn't work (and having it loaded causes
non-deterministic failures in the process-related tests)
Ben Darnell [Sat, 6 Aug 2011 21:21:19 +0000 (14:21 -0700)]
Accept timedelta objects in IOLoop.add_timeout.
Closes #329.
Ben Darnell [Sat, 6 Aug 2011 20:23:35 +0000 (13:23 -0700)]
Speed up _convert_header_value
Ben Darnell [Sat, 6 Aug 2011 20:06:54 +0000 (13:06 -0700)]
Add RequestHandler.add_header to allow headers to occur multiple times.
Ben Darnell [Sat, 6 Aug 2011 19:23:12 +0000 (12:23 -0700)]
Better path surgery in autoreload
Ben Darnell [Wed, 3 Aug 2011 06:58:41 +0000 (23:58 -0700)]
Fix style, add comments
Ben Darnell [Wed, 3 Aug 2011 06:54:28 +0000 (23:54 -0700)]
Merge remote-tracking branch 'alekstorm/master' into merge
Ben Darnell [Wed, 3 Aug 2011 06:47:55 +0000 (23:47 -0700)]
If a PeriodicCallback runs longer than its period, skip the missed callbacks
instead of trying to run all the missed callbacks to catch up.
Ben Darnell [Wed, 3 Aug 2011 06:44:21 +0000 (23:44 -0700)]
Merge remote-tracking branch 'jfisteus/periodic_callback' into merge
Ben Darnell [Wed, 3 Aug 2011 06:33:39 +0000 (23:33 -0700)]
Add install() method to IOLoop to allow a custom subclass as the singleton.
Singleton-related methods are now static, not class methods.
Ben Darnell [Wed, 3 Aug 2011 06:26:50 +0000 (23:26 -0700)]
Test that tornado.database is at least importable on all supported pythons.
Fix a problem preventing import on pypy (but apparently there are still other
issues with running MySQLdb on pypy, so the module will not actually work yet).
Alek Storm [Fri, 29 Jul 2011 21:02:57 +0000 (21:02 +0000)]
Add extra '_modules' reference to modules list in template parameters, which is used by {% module ... %} directive to avoid naming conflicts with Python modules named 'modules'
Jesus Arias Fisteus [Thu, 28 Jul 2011 16:44:29 +0000 (18:44 +0200)]
Stabilization of the period of ioloop.PeriodicCallback.
Previously, the timeout for the following event was computed by adding
callback_time to the actual time the callback finished, which caused
calls to the callback not being trully periodic.
This commit makes callback_time be a stable period by scheduling the
next timeout callback_time after the previous timeout was scheduled.
Ben Darnell [Thu, 28 Jul 2011 05:09:49 +0000 (22:09 -0700)]
Add option to print out generated template code in benchmark
Ben Darnell [Thu, 28 Jul 2011 05:03:50 +0000 (22:03 -0700)]
Speed up xhtml_escape (template benchmark goes from 49ms to 32ms)
Ben Darnell [Thu, 28 Jul 2011 05:01:05 +0000 (22:01 -0700)]
Add a template benchmark, based on one in jinja2
Ben Darnell [Thu, 28 Jul 2011 04:04:22 +0000 (21:04 -0700)]
More defensiveness about patterns that could lead to double callbacks.
Ben Darnell [Tue, 26 Jul 2011 17:50:32 +0000 (10:50 -0700)]
Allow unicode string literals to appear in template expressions.
Closes #313.
Ben Darnell [Mon, 25 Jul 2011 02:59:14 +0000 (19:59 -0700)]
Support Content-Length headers that have been duplicated by a proxy.
Closes #249.
Ben Darnell [Mon, 25 Jul 2011 02:24:23 +0000 (19:24 -0700)]
Merge branch 'httpclient_buffer'
Ben Darnell [Mon, 25 Jul 2011 02:23:38 +0000 (19:23 -0700)]
Fix test that depended on simple_httpclient implementation detail.
David Recordon [Thu, 21 Jul 2011 04:23:01 +0000 (21:23 -0700)]
Allow setting the maximum read buffer size when constructing a SimpleAsyncHTTPClient. Defaults to 100mb like the underlying IOStream. Tested that fetching a file over 100mb no longer gives a "Maximum read buffer size" exception.
Ben Darnell [Wed, 20 Jul 2011 02:35:22 +0000 (19:35 -0700)]
Consistently guard against uncaught exceptions leading to multiple callback
invocations in SimpleAsyncHTTPClient.
David Recordon [Wed, 20 Jul 2011 02:12:28 +0000 (19:12 -0700)]
Noticed that a max_clients around 50 would cause us to run out of file descriptors. lsof showed that TCP connections would remain in the established state versus being closed. stream.close is called in error states but not success. Thus call stream.close after passing the response to the callback. Result was seeing the TCP connections being properly closed as well as no change in fetching data.
Ben Darnell [Tue, 19 Jul 2011 06:52:27 +0000 (23:52 -0700)]
Delay IOStream close callback until all pending callbacks have been processed.
This fixes an issue with SimpleAsyncHTTPClient when the server closes the
connection and the close is processed before all of the data is read.
Closes #306.
Ben Darnell [Tue, 19 Jul 2011 05:59:01 +0000 (22:59 -0700)]
Move httpclient_tests that never worked with curl to simple_httpclient_test.
curl_httpclient_test was previously creating SimpleAsyncHTTPClients due to a
bug, so these failing tests went unnoticed.
Ben Darnell [Tue, 19 Jul 2011 05:34:19 +0000 (22:34 -0700)]
Fix HTTP client selection as used in curl_httpclient_test.
AsyncHTTPClient.configure() was working, but it didn't work to instantiate
the client directly like the unit tests were using.
Ben Darnell [Tue, 19 Jul 2011 04:25:59 +0000 (21:25 -0700)]
Make "python -m tornado.autoreload" run with a consistent sys.path.
Ben Darnell [Sun, 17 Jul 2011 23:52:56 +0000 (16:52 -0700)]
Add a config file to run tornado tests under multiple python versions with tox.
Also fix a setup.py problem that was leaving files out of the sdist output.
Ben Darnell [Sun, 17 Jul 2011 22:18:49 +0000 (15:18 -0700)]
Merge branch 'master' into twisted
Ben Darnell [Sun, 17 Jul 2011 22:17:36 +0000 (15:17 -0700)]
Change binary literals to hex for compatibility with python2.5
Ben Darnell [Sun, 17 Jul 2011 22:13:04 +0000 (15:13 -0700)]
Fix WebSocketProtocol8 on python3
Ben Darnell [Sun, 17 Jul 2011 22:01:07 +0000 (15:01 -0700)]
Make websocket demo work on firefox 6 beta
Ben Darnell [Sun, 17 Jul 2011 22:00:52 +0000 (15:00 -0700)]
Merge remote-tracking branch 'flodiebold/master' into merge-websocket
Ben Darnell [Sun, 17 Jul 2011 21:07:19 +0000 (14:07 -0700)]
Rename twistedreactor -> twisted
Ben Darnell [Sun, 17 Jul 2011 21:03:42 +0000 (14:03 -0700)]
Run parts of twisted's test suite on the tornado reactor
Florian Diebold [Sun, 17 Jul 2011 20:15:21 +0000 (22:15 +0200)]
Handle the hybi-07 version of the WebSocket protocol with the 08 implementation.
There don't seem to be any differences on the server side.
Ben Darnell [Sun, 17 Jul 2011 19:46:22 +0000 (12:46 -0700)]
Make twisted tests run under python 2.5
Florian Diebold [Sun, 17 Jul 2011 19:25:05 +0000 (21:25 +0200)]
Send the data of the ping frame back in the pong, as specified.
Florian Diebold [Sun, 17 Jul 2011 19:16:30 +0000 (21:16 +0200)]
Fix an exception when connecting with an unsupported WebSocket version.
Ben Darnell [Sun, 17 Jul 2011 17:25:53 +0000 (10:25 -0700)]
Remove new backwards-incompatible arguments from StaticFileHandler.set_extra_headers
Ben Darnell [Sun, 17 Jul 2011 17:45:54 +0000 (10:45 -0700)]
Merge commit '
8dbe9ba ' into work
Ovidiu Predescu [Fri, 15 Jul 2011 02:00:44 +0000 (19:00 -0700)]
Removed run() method.
Ovidiu Predescu [Thu, 14 Jul 2011 23:24:42 +0000 (16:24 -0700)]
New test to check that addWriter followed by removeWriter properly removes the writer from IOLoop.
Ovidiu Predescu [Thu, 14 Jul 2011 23:00:02 +0000 (16:00 -0700)]
Moved twisted/reactor.py to platform/twistedreactor.py.
twistedreactor.py:
- cleaned up logging
- don't try to crash if stop has been called (uses _running to check it)
- don't add reader and writers if they've already been added
- use a NullContext when calling add_handler
- call IOLoop.close() to properly close file descriptors
- implement run() and instruct the reactor to not install signal handlers.
import_test.py:
- import twistedreactor too
twistedreactor_test.py:
- do conditional includes based on twisted
- remove superfluous logging
- don't use assertGreater
- use threading instead of the thread module. Join threads at the end of test.
- properly close the file descriptor in Reader/Writer's connectionLost().
- make use of tornado.platform.auto's set_close_exec.
- write only one in the pipe, and check for that.
Ovidiu Predescu [Thu, 14 Jul 2011 22:52:35 +0000 (15:52 -0700)]
Fix misspelling.
Ben Darnell [Thu, 14 Jul 2011 03:09:02 +0000 (20:09 -0700)]
Add a callback for flow control to RequestHandler.flush
Florian Diebold [Wed, 13 Jul 2011 19:12:48 +0000 (21:12 +0200)]
Implement the hybi-10 version of the WebSocket protocol.
Florian Diebold [Sat, 9 Jul 2011 20:33:21 +0000 (22:33 +0200)]
Refactor WebSocket support to prepare for multiple protocol versions.
All protocol-specific functions are moved to the former
WebSocketRequest class, which is renamed to WebSocketProtocol76. The
WebSocketHandler chooses the right WebSocketProtocol implementation by
looking at the request headers.
Krzysztof Tarnowski [Wed, 13 Jul 2011 17:56:24 +0000 (19:56 +0200)]
Enabled subclasses to specify expiration time.
Ovidiu Predescu [Tue, 12 Jul 2011 20:32:59 +0000 (13:32 -0700)]
Don't use defaults in reactor.py as they cause unneeded initializations.
Fix the unittest to not initialize IOLoop's global instance.
Ovidiu Predescu [Tue, 12 Jul 2011 19:08:50 +0000 (12:08 -0700)]
Added the twistedreactor_test to runtests.py.
Ovidiu Predescu [Tue, 12 Jul 2011 19:04:26 +0000 (12:04 -0700)]
Added author and copyright info.
Ovidiu Predescu [Tue, 12 Jul 2011 18:39:21 +0000 (11:39 -0700)]
Updated to not depend on IOLoop's _set_nonblocking and _set_close_exec, which were moved to a separate file.
Ovidiu Predescu [Tue, 12 Jul 2011 18:28:24 +0000 (11:28 -0700)]
Added twisted-style reactor for Tornado.
Ben Darnell [Tue, 12 Jul 2011 17:26:33 +0000 (10:26 -0700)]
Fix race condition in cross-thread IOLoop.add_callback
Ben Darnell [Tue, 12 Jul 2011 16:14:16 +0000 (09:14 -0700)]
Better error message
Ben Darnell [Mon, 11 Jul 2011 00:13:00 +0000 (17:13 -0700)]
Doc and release note updates.
Ben Darnell [Sun, 10 Jul 2011 23:13:45 +0000 (16:13 -0700)]
Support multi-line headers
Closes #9.
Ben Darnell [Sun, 10 Jul 2011 22:30:52 +0000 (15:30 -0700)]
Properly quote and unquote cookie values.
Closes #36.
Ben Darnell [Sun, 10 Jul 2011 21:00:09 +0000 (14:00 -0700)]
Fix parsing of uploaded filenames with special characters.
Closes #24.
Ben Darnell [Sun, 10 Jul 2011 19:11:43 +0000 (12:11 -0700)]
Allow any properly-formatted locale, not just ones in LOCALE_NAMES.
Ben Darnell [Sun, 10 Jul 2011 00:39:55 +0000 (17:39 -0700)]
Re-enable default_certificates test
Ben Darnell [Sun, 10 Jul 2011 00:20:29 +0000 (17:20 -0700)]
allow_nonstandard_methods now also skips the check that only POST and
PUT requests have bodies
Ben Darnell [Sat, 9 Jul 2011 21:35:59 +0000 (14:35 -0700)]
Move socket accept loop from HTTPServer to netutil.
Krzysztof Tarnowski [Fri, 8 Jul 2011 11:40:11 +0000 (13:40 +0200)]
Add a way of customizing cache control behavior for static files.
Ben Darnell [Fri, 8 Jul 2011 05:14:36 +0000 (22:14 -0700)]
Add basic unix socket support.
tornado.netutil.bind_unix_socket can create non-blocking listening unix
sockets, and HTTPServer can use them. (no client-side support for this yet)
This is useful e.g. with nginx proxying incoming TCP traffic to
a backend over a unix socket (which may be easier to manage than a set of
TCP ports)
Ben Darnell [Wed, 6 Jul 2011 16:56:46 +0000 (09:56 -0700)]
Speed up Application.__call__ when there are no matched groups
Ben Darnell [Wed, 6 Jul 2011 17:00:17 +0000 (10:00 -0700)]
Better benchmark script
bdarnell [Thu, 7 Jul 2011 00:00:28 +0000 (17:00 -0700)]
Merge pull request #297 from funtoo/patch-1
Install platform files too.
Daniel Robbins [Wed, 6 Jul 2011 22:00:11 +0000 (15:00 -0700)]
Install platform files too.
Ben Darnell [Wed, 6 Jul 2011 06:53:38 +0000 (23:53 -0700)]
Don't keep the entire output in a cStringIO when gzipping chunks
Ben Darnell [Wed, 6 Jul 2011 05:51:37 +0000 (22:51 -0700)]
Document IOStream fast-path/slow-path, and allow for chains of fast-path ops.
Ben Darnell [Wed, 6 Jul 2011 05:34:26 +0000 (22:34 -0700)]
Add a fast path for IOStream writes in addition to reads.
This is a significant speedup for small requests, since it is now
possible to do a request and (synchronous) response without calling
IOLoop.add_handler.
Ben Darnell [Wed, 6 Jul 2011 05:31:24 +0000 (22:31 -0700)]
Don't add an event handler for IOStream until we've done a read or write.
This speeds things up a bit by avoiding a system call to add a handler
for errors that is just replaced by the first read or write.
Ben Darnell [Wed, 6 Jul 2011 04:53:08 +0000 (21:53 -0700)]
Make this test more robust against the timing of server exits.
Ben Darnell [Tue, 5 Jul 2011 07:12:30 +0000 (00:12 -0700)]
Use lists of tuples instead of dicts since this test cares about order
Ben Darnell [Tue, 5 Jul 2011 05:34:13 +0000 (22:34 -0700)]
Non-file-based template loaders should always use posix filename semantics
Ben Darnell [Tue, 5 Jul 2011 05:26:39 +0000 (22:26 -0700)]
Disable this test on non-unix platforms
Ben Darnell [Tue, 5 Jul 2011 04:04:53 +0000 (21:04 -0700)]
Move the waker pipe into tornado.platform.
Ben Darnell [Tue, 5 Jul 2011 03:37:52 +0000 (20:37 -0700)]
Clean up hacky fcntl emulation for windows.
Ben Darnell [Tue, 5 Jul 2011 03:33:21 +0000 (20:33 -0700)]
This looks like it's always been backwards.
Ben Darnell [Tue, 5 Jul 2011 03:20:26 +0000 (20:20 -0700)]
Move win32_support to a new tornado.platform package
Ben Darnell [Tue, 5 Jul 2011 02:24:20 +0000 (19:24 -0700)]
Release notes for multi-process stuff
Ben Darnell [Tue, 5 Jul 2011 02:15:37 +0000 (19:15 -0700)]
Check for forked status in autoreload
Ben Darnell [Tue, 5 Jul 2011 02:11:32 +0000 (19:11 -0700)]
Better fork_processes: Restart processes when they exit abnormally. Tests!
Ben Darnell [Tue, 5 Jul 2011 01:12:15 +0000 (18:12 -0700)]
Don't initialize the singleton IOLoop from tearDown
Ben Darnell [Tue, 5 Jul 2011 00:32:31 +0000 (17:32 -0700)]
Refactor random-seed code out of fork_processes
Ben Darnell [Tue, 5 Jul 2011 00:17:00 +0000 (17:17 -0700)]
Better documentation for HTTPServer startup
Ben Darnell [Tue, 5 Jul 2011 00:00:27 +0000 (17:00 -0700)]
Add the HTTPServer.add_sockets interface
Ben Darnell [Mon, 4 Jul 2011 23:32:14 +0000 (16:32 -0700)]
Pull process forking out of HTTPServer into a new module
Ben Darnell [Mon, 4 Jul 2011 22:58:17 +0000 (15:58 -0700)]
Pull socket creation out of HTTPServer into a new module.
Ben Darnell [Mon, 4 Jul 2011 20:20:19 +0000 (13:20 -0700)]
Add a better error message for a common assertion