]>
git.ipfire.org Git - thirdparty/tornado.git/log
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.
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.
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
Ben Darnell [Mon, 4 Jul 2011 19:16:50 +0000 (12:16 -0700)]
Revamp error handling: replace get_error_html with write_error.
Ben Darnell [Mon, 4 Jul 2011 17:17:32 +0000 (10:17 -0700)]
Add RequestHandler.set_default_headers, which may be overridden to set
headers that will not be reset during error handling.
Ben Darnell [Sun, 3 Jul 2011 18:06:27 +0000 (11:06 -0700)]
Create the StackContext in @asynchronous instead of on all requests,
to improve performance in the synchronous case.
Ben Darnell [Sun, 3 Jul 2011 17:53:03 +0000 (10:53 -0700)]
Better handling of errors not generated by an exception; add to release notes
Ben Darnell [Sun, 3 Jul 2011 02:32:51 +0000 (19:32 -0700)]
Update next release notes for recent changes
Ben Darnell [Sun, 3 Jul 2011 01:34:23 +0000 (18:34 -0700)]
Add support for client SSL certificates in simple_httpclient
Ben Darnell [Sun, 3 Jul 2011 01:21:53 +0000 (18:21 -0700)]
Merge remote-tracking branch 'eklitzke/tracebacks' into merge
Ben Darnell [Sun, 3 Jul 2011 00:29:08 +0000 (17:29 -0700)]
Merge remote-tracking branch 'davidwilemski/master' into merge
David Wilemski [Sat, 2 Jul 2011 22:22:51 +0000 (18:22 -0400)]
Used tornado.util.import_object
Ben Darnell [Sat, 2 Jul 2011 21:36:37 +0000 (14:36 -0700)]
Allow the caller to specify the listen() backlog in HTTPServer.bind.
Ben Darnell [Sat, 2 Jul 2011 21:20:30 +0000 (14:20 -0700)]
Merge branch 'master' into merge
Ben Darnell [Sat, 2 Jul 2011 20:08:03 +0000 (13:08 -0700)]
Properly check for errors on async connect instead of relying on the order
of events from the IOLoop.
Ben Darnell [Sat, 2 Jul 2011 20:07:46 +0000 (13:07 -0700)]
Skip ipv6 tests if the system isn't configured for it.
Ben Darnell [Sat, 2 Jul 2011 19:37:07 +0000 (12:37 -0700)]
Fix websocket handshake status line
David Wilemski [Sat, 2 Jul 2011 07:06:25 +0000 (03:06 -0400)]
Added dynamic loading of request handlers
This commit implements gh-124.
Users can specify "module.ClassName" rather than load a module that
contains a request handler and then refering to the request handler
class.
Ben Darnell [Thu, 30 Jun 2011 02:41:02 +0000 (19:41 -0700)]
Check for the existence of callbacks after running all timeouts
Evan Klitzke [Thu, 30 Jun 2011 00:50:13 +0000 (17:50 -0700)]
improve the speed of add_callback by avoiding the waker pipe when possible
Ben Darnell [Tue, 28 Jun 2011 06:36:20 +0000 (23:36 -0700)]
Improve auth module on python 3 (covers openid and oauth2, but not oauth1.x)
Ben Darnell [Mon, 27 Jun 2011 01:51:12 +0000 (18:51 -0700)]
Replace all bare "except:" blocks with "except Exception:" so we don't
accidentally catch KeyboardInterrupt.
Ben Darnell [Mon, 27 Jun 2011 01:43:17 +0000 (18:43 -0700)]
Reduce logging verbosity in curl_httpclient to match simple_httpclient.
Ben Darnell [Mon, 27 Jun 2011 01:32:41 +0000 (18:32 -0700)]
Remove support for cookies set by pre-1.0 releases of Tornado.
Ben Darnell [Mon, 27 Jun 2011 01:30:19 +0000 (18:30 -0700)]
Add max_age_days parameter to RequestHandler.get_secure_cookie.
Closes #27.
Closes #189.
Ben Darnell [Mon, 27 Jun 2011 00:00:02 +0000 (17:00 -0700)]
Remove debugging print statement, log on clean exits too.
Ben Darnell [Sun, 26 Jun 2011 22:24:23 +0000 (15:24 -0700)]
Add command-line interface to tornado.autoreload
Ben Darnell [Sun, 26 Jun 2011 21:21:02 +0000 (14:21 -0700)]
Clean up shutdown process for IOLoop and HTTPClient.
This fixes an exception on exit from tornado.httpclient.main().
Ben Darnell [Sun, 26 Jun 2011 21:03:51 +0000 (14:03 -0700)]
Consolidate httpclient main() functions
Ben Darnell [Sun, 26 Jun 2011 19:27:54 +0000 (12:27 -0700)]
Add read_until_close method to IOStream and use it in SimpleAsyncHTTPClient.
Ben Darnell [Sun, 26 Jun 2011 18:56:18 +0000 (11:56 -0700)]
Move read_bytes(0) special-case into _consume so it uses more of the regular code path.
Ben Darnell [Sun, 26 Jun 2011 18:24:29 +0000 (11:24 -0700)]
Fail more gracefully when SSL is not supported, and on non-HTTP urls
Ben Darnell [Sun, 26 Jun 2011 02:35:04 +0000 (19:35 -0700)]
Remove unused imports and variables.
Closes #278.
Ben Darnell [Sun, 26 Jun 2011 02:04:27 +0000 (19:04 -0700)]
Make websocket work in python3.
Closes #288.
Ben Darnell [Sun, 26 Jun 2011 02:02:55 +0000 (19:02 -0700)]
Accept utf8-encoded byte strings in json_encode
Ben Darnell [Sun, 26 Jun 2011 01:54:37 +0000 (18:54 -0700)]
Allow non-ascii (but still latin1) in our fake byte literals
Ben Darnell [Sun, 26 Jun 2011 01:36:48 +0000 (18:36 -0700)]
Fixed error in HTTPServer when AI_ADDRCONFIG is not available (as on WinXP)
Closes #287
Ben Darnell [Sun, 26 Jun 2011 01:25:37 +0000 (18:25 -0700)]
Bump version number for the master branch
Evan Klitzke [Thu, 23 Jun 2011 18:14:16 +0000 (11:14 -0700)]
add text tracebacks on 500s when in debug mode
Ben Darnell [Wed, 22 Jun 2011 06:04:39 +0000 (23:04 -0700)]
Add more prominent warning about incompatible changes in 2.0
Ben Darnell [Wed, 22 Jun 2011 06:00:15 +0000 (23:00 -0700)]
Add more setup.py debris to .gitignore
Ben Darnell [Wed, 22 Jun 2011 05:28:35 +0000 (22:28 -0700)]
Set version number to 2.0
Ben Darnell [Wed, 22 Jun 2011 05:28:20 +0000 (22:28 -0700)]
Add 2.0 release notes
Ben Darnell [Wed, 22 Jun 2011 03:43:14 +0000 (20:43 -0700)]
Add test for unicode domain and path arguments to set_cookie
Ben Darnell [Sun, 19 Jun 2011 22:40:16 +0000 (15:40 -0700)]
Update homepage
Ben Darnell [Sun, 19 Jun 2011 21:25:19 +0000 (14:25 -0700)]
Misc updates
Ben Darnell [Sun, 19 Jun 2011 20:29:31 +0000 (13:29 -0700)]
Remove old markdown version of overview page
Ben Darnell [Sun, 19 Jun 2011 20:01:22 +0000 (13:01 -0700)]
Remove some redundant sections; flatten document structure
Ben Darnell [Sun, 19 Jun 2011 19:37:10 +0000 (12:37 -0700)]
Fix formatting that didn't convert correctly
Ben Darnell [Sun, 19 Jun 2011 19:10:26 +0000 (12:10 -0700)]
Convert overview from markdown to rst with pandoc
Ben Darnell [Sun, 19 Jun 2011 19:05:28 +0000 (12:05 -0700)]
Style updates
Ben Darnell [Sun, 19 Jun 2011 18:23:53 +0000 (11:23 -0700)]
Run coverage check and fill in the blanks
Ben Darnell [Sun, 19 Jun 2011 17:45:35 +0000 (10:45 -0700)]
Finish this round of doc updates
Ben Darnell [Fri, 17 Jun 2011 07:16:40 +0000 (00:16 -0700)]
IOLoop and HTTPClient docs
Ben Darnell [Fri, 17 Jun 2011 05:36:33 +0000 (22:36 -0700)]
More doc updates
Ben Darnell [Thu, 16 Jun 2011 02:34:49 +0000 (19:34 -0700)]
New method to_basestring replaces some use of native_str.
native_str would force the argument to (utf8) bytes, while in python2
it is often more appropriate to preserve the type of the input data.
Closes #280
Ben Darnell [Tue, 14 Jun 2011 21:38:42 +0000 (14:38 -0700)]
Unquote PATH_INFO in wsgi.
Closes #281
Closes #282