Ben Darnell
4c23ba7e78
Make fork_processes raise SystemExit instead of returning None when
...
all child processes exit cleanly.
2012-01-03 21:19:51 -08:00
Ben Darnell
ffa8f152ab
Add comment about (non-)thread-safety of IOLoop.add_timeout.
2012-01-02 19:17:57 -08:00
Ben Darnell
468754e31f
Release note updates
2012-01-01 23:19:48 -08:00
Ben Darnell
8fbe7c7d11
Rewrite IP check to use getaddrinfo instead of inet_pton (more portable).
...
Closes #392 .
2012-01-01 22:54:36 -08:00
Ben Darnell
5650d90747
Merge remote-tracking branch 'davidwilemski/xheaders-xss' into work
2012-01-01 22:26:12 -08:00
Ben Darnell
ac9902cbe3
Use a StackContext to allow exceptions thrown from asynchronous functions
...
called by a generator to be caught normally.
Closes #405 .
Closes #411 .
2012-01-01 19:20:05 -08:00
Ben Darnell
008e605ec6
Allow exceptions thrown in the first (synchronous) phase of a gen.Task
...
to be caught by the generator.
2012-01-01 16:17:35 -08:00
Ben Darnell
494ae50ad3
Increase maximum IOLoop poll timeout.
...
I believe the previous 0.2s limit was there to work around an old bug in
the add_callback waker that has since been fixed.
2012-01-01 14:00:13 -08:00
Ben Darnell
ad63265338
Support status codes other than 301 and 302 in RequestHandler.redirect().
...
Closes #228 .
Closes #424 .
2011-12-30 20:20:25 -08:00
Ben Darnell
7f5d4de759
Avoid merging the entire read buffer for IOStream.read_until.
...
Among other things, this dramatically speeds up downloads of large
chunked files over a fast network with SimpleHTTPClient.
Fixes #425 .
2011-12-30 16:19:49 -08:00
Ben Darnell
0b31d8de4c
bytearray is a 2.6ism; use array.array("B") instead for 2.5 compatibility.
2011-12-30 14:47:21 -08:00
Ben Darnell
84250a37a9
Invert fragment-handling logic for clarity
2011-12-30 13:29:12 -08:00
Ben Darnell
9f32af1770
Improve websocket conformance as reported by autobahn.
...
Of note:
* It's now possible to send binary frames (auto-switched based on
whether the argument to write_message is bytes or unicode)
* Invalid utf8 in text frames is now an error
* Lots of fragmentation-related improvements
2011-12-30 12:54:36 -08:00
Ben Darnell
34b59827c9
Add websocket conformance tests using autobahn
2011-12-30 12:53:11 -08:00
Ben Darnell
877aa9d861
Install more python versions in the linux VM so we can test epoll.c too.
...
Also fix a bug in the test for python 2.5 on systems where ipv6 is not
configured (socket.gaierror didn't have an `errno` attribute until 2.6)
2011-12-30 00:49:19 -08:00
Ben Darnell
f27b49a743
Misc doc updates.
2011-12-29 23:09:18 -08:00
David Wilemski
4f64fbe99b
A typo fix I noticed while fixing bug 392
2011-12-17 14:48:23 -05:00
David Wilemski
0635284834
Fix for bug #392
...
Validates the remote_ip from xheaders using socket.inet_pton
2011-12-17 14:45:59 -05:00
Ben Darnell
112fdb48b0
Fix an implicit relative import
2011-12-16 00:07:25 -08:00
Ben Darnell
44a97bdb79
Start accumulating release notes
2011-12-15 23:59:42 -08:00
Ben Darnell
dae7c0f2e1
Merge remote-tracking branch 'alekstorm/master' into merge
2011-12-15 23:35:48 -08:00
Ben Darnell
54b244d2b8
Merge remote-tracking branch 'alekstorm/template_comment' into merge
2011-12-15 23:27:30 -08:00
Ben Darnell
e7a47e7b6f
Improve app engine tests now that SDK 1.6.1 is compatible with virtualenv
2011-12-15 22:57:20 -08:00
Serge S. Koval
3537a66ef1
Minor cleanup.
2011-12-10 11:58:16 +02:00
Serge S. Koval
93465a1b03
Removed unnecessary checks from appropriate websocket protocol implementations.
2011-12-10 11:56:45 +02:00
Serge S. Koval
0b5e73b054
Connection header must include "Upgrade", but should not be equal to.
2011-12-08 14:48:38 +02:00
Serge S. Koval
70bb948f77
Additional checks for WebSocket protocol handshake.
2011-12-08 14:42:37 +02:00
Ben Darnell
597f70b318
A different approach to template stack traces:
...
Include the template source line as a comment in the generated code,
and add the magic necessary for python's normal stack traces to print
the (generated) source.
2011-12-07 01:26:02 -08:00
Ben Darnell
45ca697f5d
Merge remote-tracking branch 'alekstorm/template_trace' into merge
...
Conflicts:
tornado/template.py
2011-12-07 00:18:42 -08:00
Birk Nilson
59812edca7
Add ability to parse static path before using it as though it was
...
a relative filesystem path. Thereby enabling developers to add the versioning
string as a component in the path rather than a query string. Which is required
when working with CloudFront for instance.
2011-12-02 14:28:31 +00:00
Birk Nilson
782c4defff
Fixed issue when slicing static_url version string when none exists.
2011-12-02 14:25:45 +00:00
Birk Nilson
2468216f59
Separate generation of static URLs and versioning in order ease customization
...
of how versioning is handled in subclasses.
2011-12-02 12:28:03 +00:00
Ben Darnell
52c83a4133
Our tests don't work with the recently-released Twisted 11.1.0, so pin
...
the tests to 11.0.0 until we figure out what's going on.
2011-11-30 23:00:12 -08:00
Birk Nilson
9484eb08cd
Allow override of include_host in static_url.
...
Thereby supporting the generation of absolute URLs even though the
handler - by default - would have generated a relative URL for instance.
The reverse scenario is of course supported also.
2011-11-30 20:51:33 +00:00
bdarnell
eb79f0dd06
Merge pull request #403 from jparise/log-levels
...
Mention the 'debug' level in --logging's help.
2011-11-26 12:42:19 -08:00
Ben Darnell
0b06f4a017
Merge commit '7d32d64' into merge
2011-11-26 12:32:22 -08:00
Jon Parise
d81851cdaa
Mention the 'debug' level in --logging's help.
...
There are a number of places in the Tornado code base where log
messages are logged at the logging.DEBUG level. It's useful to
advertise this here.
2011-11-26 11:21:04 -05:00
MinRK
da7838402a
use '%s' formatting instead of '%d' for fds in IOLoop log messages
...
In case some poller implementations accept sockets or values other than
integer file descriptors, this prevents tornado's log messages from
raising errors.
2011-11-22 15:48:46 -08:00
MinRK
e8b4c7d6c3
fix milliseconds -> seconds typo
...
in ioloop, a variable was called milliseconds, but its units were seconds,
which is confusing.
2011-11-22 15:46:19 -08:00
Thomas Miedema
7d32d6495f
Fix _reseed_random when os.urandom is not implemented
2011-11-22 11:15:44 +01:00
bdarnell
fc7a3dba72
Merge pull request #396 from justinrosenthal/master
...
Prevent duplicate callbacks when PeriodicCallback is stopped and restarted before _next_timeout
2011-11-13 22:52:36 -08:00
bdarnell
48459e31d3
Merge pull request #397 from swies/master
...
Invalid Cookie header crashes get_cookie
2011-11-13 22:51:51 -08:00
bdarnell
6560b773fc
Merge pull request #398 from phleet/patch-1
...
Documentation fix for AsyncTestCase
2011-11-13 22:50:25 -08:00
Ben Darnell
7a48715570
Add very basic testing for app engine
2011-11-13 21:22:21 -08:00
Ben Darnell
0b8adeb324
Thread safety for shared data structures (templates and static file hashes)
...
These data structures were basically safe before thanks to the GIL, but could
lead to wasted work in multithreaded environments (such as the new python2.7
app engine)
Also fixed a bug that made debug mode not invalidate static files.
2011-11-13 20:15:44 -08:00
Ben Darnell
89f35bc1cb
Add an option to the test runner to kill the process on SIGINT
...
instead of raising an exception.
This makes it easier to work with tests that get into uninterruptible
states (such as threading.Lock deadlocks)
2011-11-13 18:07:32 -08:00
Jamie Wong
c7c0cafa58
Documentation fix for AsyncTestCase
2011-11-12 22:56:52 -08:00
Ben Darnell
b4e73a7353
Local copy of sphix coverage plugin is no longer needed in version 1.1
2011-11-11 20:35:26 -08:00
Patrick Swieskowski
f0df94ca6b
fix crash on invalid Cookie header
2011-11-06 08:56:00 -08:00
Justin Rosenthal
700f5a7054
Prevent duplicate callbacks when PeriodicCallback is stopped and restarted before _next_timeout
2011-11-03 23:31:49 -07:00