unknown
3e1d57b2bd
Fix for raising an exception;
...
Fix for waking loop;
Added test
2010-03-24 10:14:03 -05:00
unknown
73fbe2843d
Merge branch 'master' of git://github.com/facebook/tornado
2010-03-24 08:25:23 -05:00
Brandon Bickford
e391fd289e
Use per-module loggers instead of the root logger.
2010-03-23 17:53:20 -07:00
Ben Darnell
e340491473
Add __slots__ to ioloop._Timeout to reduce memory overhead when there are
...
many pending timeouts.
2010-03-23 17:31:14 -07:00
unknown
9f4c6af84a
Implementing suggested changes
2010-03-23 09:29:46 -05:00
unknown
ae7f90bf5b
Merge remote branch 'upstream/master'
2010-03-23 09:24:34 -05:00
Ben Darnell
33a587b0d5
Don't put wsgi response headers in a dictionary to support repeated
...
headers with the same value (mainly important for Set-Cookie)
2010-03-22 16:35:05 -07:00
Ben Darnell
7fda8c5d38
Don't set the etag header if the handler already did it.
2010-03-20 12:20:42 -07:00
Ben Darnell
bce36a7c1a
Add a callback to handle headers in httpclient as they come in, so
...
they will be available for data handled by streaming_callback.
2010-03-19 11:20:56 -07:00
Ben Darnell
70fb42d6a0
Add a close method to AsyncHTTPClient.
2010-03-18 13:27:49 -07:00
Dolapo Falola
03308b1a7d
add a template_loader application setting for using custom template loaders. a slight refactoring of TemplateLoader's load method to expose some internals. also, add a reset method to the loader that's called in debug mode to flush the template cache.
2010-03-17 19:22:33 -07:00
Ben Darnell
8359c05ca0
Support named groups in url pattern regexes. Note that either all or none
...
of the groups to be passed to the handler must be named.
2010-03-17 18:51:37 -07:00
Ben Darnell
fca7c83134
Allow more than two consecutive curlies to appear in templates (and use
...
the innermost). This was previously a syntax error in the generated python.
2010-03-17 18:48:32 -07:00
Ben Darnell
8c096b231c
Combine repeated headers with the same name into a single comma-separated string
...
http://www.w3.org/Protocols/HTTP/1.0/spec.html#Message-Headers
2010-03-17 18:29:03 -07:00
Ben Darnell
40ce72c1c6
Replace all tabs with spaces.
2010-03-17 14:59:17 -07:00
Fabricio Zuardi
6d070f77c2
updated the gitignore to include files generated on installation
2010-03-14 00:08:26 -03:00
unknown
6704dc99a0
win32 needs to open the files as binary
2010-03-10 15:40:36 -06:00
unknown
bec0552eff
Trying to better re-use code
2010-03-10 15:39:50 -06:00
unknown
248c57809f
Merge remote branch 'upstream/master'
2010-03-10 15:37:58 -06:00
Ben Darnell
d2ca9ad618
Fix bug with IOLoop's 'waker' pipe which rendered it ineffective on linux
...
and mac (where pipes are unidirectional) and caused high cpu usage
on solaris (where pipes are bidirectional). Thanks to Jari Ahonen for
finding the bug.
2010-03-09 09:17:23 -08:00
Ben Darnell
45f76c518e
In finish(), test if chunk is None rather than using truthiness to decide
...
whether to call write().
This fixes a discrepancy between finish() and write() when outputting json.
Now both write({}) and finish({}) will output an empty json object.
2010-03-07 12:47:52 -08:00
Ben Darnell
8637a738ef
Set the close-on-exec flag on file descriptors used by IOLoop (epoll/kqueue
...
and pipe) so that long-lived autoreloading processes don't leak file
descriptors.
2010-03-04 12:39:33 -08:00
Ben Darnell
f4359bc128
Use a WeakKeyDictionary instead of a regular dictionary to associate
...
IOLoop and AsyncHTTPClients. This prevents leaks of memory and file
descriptors when one process (in my case a unit test runner) create
many IOLoop/AsyncHTTPClient pairs.
2010-03-04 11:52:18 -08:00
Ben Darnell
d42334e319
Allow subclasses of IOLoop to override the default logging of
...
uncaught exceptions in callbacks.
2010-03-03 19:14:45 -08:00
Ben Darnell
a0af68cc04
Ensure that self.io_loop is set in HTTPServer.start(), so that HTTPServer.stop
...
can clean up correctly.
2010-03-03 17:22:48 -08:00
Ben Darnell
62cdb36b6c
Revamp logging configuration.
...
* If --logging=none, tornado will not touch the python logging config.
* Colored output is optional. If curses is not available or stderr is not
a tty, non-colorized output will be used.
* Log output to stderr can be suppressed with --log_to_stderr=false
* Logs can be written to a file (non-colorized) with --log_file_prefix.
Logs will be rotated, which can be controlled with --log_file_max_size
and --log_file_num_backups.
* By default, logs go to a file if --log_file_prefix is set and to stderr
if it is not. To log to both stderr and a file, --log_to_stderr must
be set to true explicitly.
2010-03-01 19:18:04 -08:00
Ben Darnell
61f0fafe4b
Call the close() method on the wsgi response object if it exists.
...
This is required by the WSGI spec, and cherrypy leaks memory without it.
2010-02-26 16:36:21 -08:00
Ben Darnell
f6266ba806
Add SERVER_PROTOCOL variable to wsgi environment. This turns out to be
...
necessary for using cherrypy in a tornado WSGIContainer.
2010-02-26 14:08:09 -08:00
Ben Weaver
1ae186a504
Add exc_info parameter to start_response() in WSGIContainer.
2010-02-26 13:11:27 -05:00
Ben Darnell
c5627d2f16
Work around an odd error I occasionally see in autoreload (which causes
...
autoreload to loop endlessly without restarting the process)
2010-02-25 15:49:08 -08:00
Ben Darnell
f9cda8634b
Add a workaround for a bug in os.execv when used on Mac OS X versions
...
prior to 10.6 when there are multiple threads in the process.
2010-02-24 16:37:11 -08:00
Ben Darnell
010271d7ec
Always reraise KeyboardInterrupt and SystemExit whenever IOLoop tries to
...
swallow exceptions.
2010-02-24 15:18:39 -08:00
Ben Darnell
15ceda2278
Fix ioloop._KQueue to work correctly when listening for both read and write.
...
kqueue.control must be called separately for each type of filter, not just
once with the filters or'd together.
Fixes http://github.com/facebook/tornado/issues/issue/59/
Change adapted from
97e528cf6b
2010-02-16 12:53:23 -08:00
Bret Taylor
ef83f4b6ca
Support passing in cookie value directly in cases where you have to parse the value from other sources (e.g., from the URL for Flash requests). Also fix documentation error for Facebook Connect.
2010-02-05 10:24:57 -08:00
Ben Darnell
7ffb44237f
Don't set content-length in StaticFileHandler unless we're actually
...
sending the content. Some browsers get confused by this (e.g. the
version of webkit embedded in fluid, but not the version used in chrome).
2010-02-04 13:18:43 -08:00
Bret Taylor
c1be85fcfe
Add backwards compatability for secure cookie reading
2010-02-04 00:02:09 -08:00
Bret Taylor
4daeb8d880
Simplify JavaScript path ordering patch
2010-02-03 23:51:20 -08:00
Ben Darnell
a34dc422e2
Import setuptools if it's available.
2010-02-03 15:49:05 -08:00
Elias Torres
ae1ed23421
Making sure StaticFileHandlers get first, if not, a catch all handler would break the static handlers.
2010-02-03 15:46:52 -08:00
Ben Darnell
3e9a285af0
Include cookie name in signature so that a value signed for use in one
...
cookie can't be used in another. Note that this invalidates all existing
signed cookies.
2010-02-03 12:18:44 -08:00
unknown
efbc2e09b9
using os specific path seperator
2010-02-03 14:17:28 -06:00
Elias Torres
8aae3263dd
Fix for maintaining script inclusion order
2010-02-03 12:11:09 -08:00
Elias Torres
0984e008c9
Added the ability to stop an HTTPServer. Mostly for unittesting.
2010-02-03 12:07:56 -08:00
Ben Darnell
74f75616c1
Stop parsing arguments after --
2010-02-03 12:06:43 -08:00
Ben Darnell
2036199336
Fix EINTR exception handling for non-english locales.
2010-02-03 12:05:03 -08:00
Ben Darnell
8186101e65
Set headers earlier in StaticFileHandler, so we return the correct
...
content-type with 304 results (instead of always returning text/html)
2010-02-03 11:56:57 -08:00
Ben Darnell
77eb5867e1
Add static_url_prefix setting to allow serving of static files somewhere
...
other than /static/
2010-02-03 11:49:32 -08:00
unknown
123771a096
Added support for running Tornado on win32
2010-02-03 10:03:01 -06:00
Ben Darnell
e30e28bcfb
Add a hook to allow applications to modify the curl objects directly.
2010-01-28 16:44:20 -08:00
Casey Muller
b6ad0f6323
Merge branch 'master' of git://github.com/bdarnell/tornado
2010-01-28 00:28:22 -08:00