Ben Darnell
970b43bddf
Add configs for testing on Vagrant-managed VMs.
2011-10-07 01:08:14 -07:00
Ben Darnell
6dd03c06f6
Bump version number in the master branch
2011-10-07 01:08:13 -07:00
Ben Darnell
fa159286ff
Set version number to 2.1.1
2011-10-04 09:59:49 -07:00
Ben Darnell
ea25c04a9c
Add release notes for 2.1.1
2011-10-04 09:50:47 -07:00
Ben Darnell
c5e19a045d
Always advance _next_timeout in PeriodicCallback._schedule_next().
...
On fast machines (and platforms where time.time() has low resolution),
it's possible to make it through an IOLoop iteration with time.time()
unchanged, which would cause the callback to be run multiple times
regardless of the requested interval.
Closes #366 .
2011-10-04 09:04:58 -07:00
bdarnell
934152253c
Merge pull request #372 from WGH-/patch-1
...
tornado/iostream.py - long type in read_bytes
2011-10-03 22:45:18 -07:00
Ben Darnell
420ad0869a
Errors from socket.connect() should be treated the same way as async failures.
...
On freebsd non-blocking connect() may return certain errors (such as
ECONNREFUSED from localhost) immediately instead of returning EINPROGRESS
and then giving the error later.
Also improve the test for ipv6 compatibility, since freebsd returns a different
error than other platforms when ipv6 is not available.
2011-10-03 22:28:33 -07:00
WGH-
1057260aa1
Edited tornado/iostream.py via GitHub
2011-10-03 21:03:14 +04:00
Ben Darnell
4b346bdde8
Fix a case in which chunked responses could be closed prematurely.
...
The bug manifests with certain patterns of fast-path/slow-path writes
on the IOStream, so it's difficult to test (it was more likely to occur in
2.0 than in 2.1).
http://groups.google.com/group/python-tornado/browse_thread/thread/7228881f7af38070
2011-09-22 10:38:35 -07:00
Ben Darnell
8572cc40a1
Fix connection-close detection for epoll.
...
Previously, closed connections with epoll sent an IOLoop.ERROR event
while there was still data in the OS's socket buffers. Event handlers
that did not drain the entire socket buffer before processing the
close event would lose data. (this was primarily an issue for
SimpleAsyncHTTPClient)
IOLoop.ERROR no longer includes EPOLLRDHUP (which is only supposed to be
used in edge-triggered mode: https://lkml.org/lkml/2003/7/12/132 ), so closed
connections while reading are signaled as zero-byte reads once the buffer
is drained (this was already the behavior of the select-based IOLoop).
Closed connections while writing are still signaled with EPOLLHUP.
Backwards-compatibility note: Listening for IOLoop.ERROR alone is no longer
sufficient for detecting closed connections on an otherwise unused socket.
IOLoop.ERROR must always be used in combination with READ or WRITE.
2011-09-22 00:32:21 -07:00
Ben Darnell
fe955fec39
Bump version number in the master branch
2011-09-22 00:32:21 -07:00
Ben Darnell
b419316cc7
Set version number to 2.1
2011-09-20 21:21:52 -07:00
Ben Darnell
a9980ac1d2
Move next.rst to v2.1.0.rst
2011-09-20 21:21:07 -07:00
bdarnell
189c268a06
Merge pull request #363 from daharon/master
...
Make HTTPHeaders.__contains__() case-insensitive, like the rest of the object
2011-09-19 10:45:37 -07:00
Daniel Aharon
f6b2dbea26
Make HTTPHeaders.__contains__() case-insensitive, like the rest of the object.
2011-09-19 09:32:27 -07:00
Ben Darnell
5cf9890b45
Add a test for the bug fixed in commit e811959
2011-09-18 16:44:32 -07:00
Florian Diebold
662d8ace14
Fix the handling of messages of length 126 in the draft-10 Websocket implementation.
2011-09-18 15:36:54 -07:00
Florian Diebold
e811959588
Fix the IOStream close callback not getting called if there are pending callbacks.
...
_maybe_add_error_listener only does anything if _state is None.
2011-09-18 15:36:54 -07:00
Ben Darnell
95b707339a
Close leaking listener socket in tests
2011-09-17 22:00:00 -07:00
Ben Darnell
7dba811d9e
More release note updates
2011-09-17 13:14:11 -07:00
Ben Darnell
53bf14c7e6
Update ca-certs file to remove Diginotar
2011-09-15 11:22:22 -07:00
Ben Darnell
ff4be521f9
Put overview documentation back in HTTPServer docstring, and other doc
...
and import cleanups
2011-09-14 22:37:59 -07:00
Ben Darnell
593102d17e
Merge remote-tracking branch 'alekstorm/tcpserver' into merge
2011-09-14 21:22:32 -07:00
Ben Darnell
b8fd0c1988
Remove doc warnings about tornado.auth in python3
2011-09-11 23:16:08 -07:00
Ben Darnell
eb5f2ceb01
Add crude tests for the auth module, and fix python3 issues with oauth1
2011-09-11 23:15:04 -07:00
Alek Storm
437c477ac6
Move `TCPServer` to `netutil`, change `handle_stream` callback to overridden method hook, move IP address hack for unix domain sockets to `HTTPConnection`
2011-09-12 05:32:43 +00:00
Ben Darnell
ef788bce6d
Merge branch 'branch2.0'
2011-09-11 20:42:22 -07:00
Ben Darnell
5872db2e66
Add support for callbacks that take more than a single positional argument.
...
Closes #351 .
2011-09-11 15:50:34 -07:00
Ben Darnell
94b483efc4
Add support for lists of YieldPoints in the gen framework.
2011-09-11 15:09:25 -07:00
bdarnell
3496f757f3
Merge pull request #356 from alekstorm/files
...
Convert dictionaries representing HTTP files to HTTPFile objects
2011-09-10 16:38:21 -07:00
Alek Storm
ec953d2dac
Convert dictionaries representing HTTP files to HTTPFile objects, with dictionary access for attributes retained for backwards compatibility
2011-09-10 23:27:40 +00:00
Alek Storm
452ebff386
Move web._O to util.ObjectDict
2011-09-10 23:25:10 +00:00
Ben Darnell
d5e924a83c
Add reference docs for all template directives.
...
Closes #355 .
2011-09-10 15:15:36 -07:00
Ben Darnell
1a6dd4c0c9
Reorder tox environments so the most important/likely-to-fail ones run first.
2011-09-10 15:15:31 -07:00
Ben Darnell
1b5adf99e4
Add on_connection_close hook to chat demo to clean up after closed connections.
...
Closes #354 .
2011-09-08 22:51:45 -07:00
Ben Darnell
12c5699eb7
Extract cookie-signing methods from RequestHandler so they can be used
...
outside the web stack.
Closes #339 .
2011-09-08 22:45:30 -07:00
Ben Darnell
c9fb8e0312
Add streaming_callback to IOStream.read_bytes and read_until_close.
...
Closes #300 .
2011-09-08 22:07:32 -07:00
Alek Storm
dfda3a555f
Factor HTTP-specific code into HTTPServer subclass of TCPServer
2011-09-08 00:17:40 +00:00
Ben Darnell
c36e482d15
Remove unused variables (discovered by pyflakes)
2011-09-05 14:00:51 -07:00
Ben Darnell
5997f411d5
Improve exception handling for gen module.
2011-09-05 13:23:57 -07:00
Ben Darnell
2f91460164
Allow any sequence in gen.WaitAll, not just lists.
2011-09-05 12:15:50 -07:00
Ben Darnell
39de229e86
Add test for 100-continue functionality, and fix it on python 3
...
Closes #350 .
2011-09-05 12:12:59 -07:00
Ben Darnell
f28674d370
Document tornado.platform.twisted, and rename ioloop parameter to io_loop
...
for consistency with other modules.
2011-09-04 18:02:52 -07:00
Ben Darnell
f05f9b9eae
Reorganize release notes
2011-09-04 17:47:39 -07:00
Ben Darnell
b266561de2
Accumulated release note updates.
2011-09-04 15:51:25 -07:00
Ben Darnell
b2de4b8395
Update docs with new methods
2011-09-04 15:39:55 -07:00
Ben Darnell
93a0dc821c
Fix error in docs
2011-09-04 12:52:43 -07:00
Ben Darnell
096595233d
Add gen.WaitAll
2011-09-04 11:26:36 -07:00
Ben Darnell
e4ead59795
Add tornado.gen module for simpler generator-based async code.
2011-09-04 00:59:57 -07:00
Ben Darnell
c0142d2ee3
Various minor test changes for windows.
2011-09-03 13:27:28 -07:00