Ben Darnell
ddc0220613
travis.yml: Fix build on nightly python
2018-03-04 12:12:41 -05:00
Ben Darnell
03f13800e8
Merge pull request #2296 from bdarnell/docs
...
docs: Small updates
2018-03-03 19:00:17 -05:00
Jacob Kristhammar
3061216021
Remove legacy author comment
2018-03-02 15:55:47 -05:00
Ben Darnell
ce6222f718
web: Document the type of xsrf_token
...
Fixes #2279
2018-03-02 15:53:50 -05:00
Ben Darnell
e66af33dfb
ioloop: Fix docstring typo
...
Fixes #2283
2018-03-02 15:45:43 -05:00
Ben Darnell
3fc1f622a1
Merge pull request #2293 from bdarnell/docs
...
docs: Updates for sphinx 1.7
2018-02-26 09:00:47 -05:00
Ben Darnell
47d59f17b5
docs: Updates for sphinx 1.7
...
This introduced a new inherit-docstring option that we don't want
(it currently breaks our docs build) and got stricter about `:arg`
types.
2018-02-26 08:15:43 -05:00
Ben Darnell
4adf5ec9f5
Merge pull request #2277 from bdarnell/curl-debug
...
curl_httpclient: Only call native_str on debug message when needed
2018-02-12 09:39:35 -05:00
Ben Darnell
27a6103148
curl_httpclient: Only call native_str on debug message when needed
...
Some debug messages are binary blobs that should not be decoded.
Fixes #2275
2018-02-11 22:21:11 -05:00
Ben Darnell
6e60113450
docs: Clarify python version support release note
2018-02-05 22:04:22 -05:00
Ben Darnell
24d2ebd8e9
Merge pull request #2270 from polygon/fix/etag304
...
Fix/etag304
2018-02-05 21:34:54 -05:00
Ben Darnell
139f92920d
Merge pull request #2268 from WouldYouKindly/WouldYouKindly-patch-1
...
Fix typo in URLSpec.__init__ docstring
2018-02-04 22:49:02 -05:00
Jan Dohl
fcd0b0b544
Fix erroneous 304 of StaticFileHandler
...
StaticFileHandler would return a 304 despite the client sending
a non-matching Etag header when If-Modified-Since matches
2018-02-03 23:58:19 +01:00
Jan Dohl
c28cb62f6d
Test to reproduce 304 on etag mismatch issue
2018-02-03 23:47:47 +01:00
Alexey
74b3a0c602
Fix typo in URLSpec.__init__ docstring
2018-02-03 00:19:55 +03:00
Ben Darnell
15e350aa27
Merge pull request #2266 from minrk/yield-null
...
fix gen.multi with gen.moment
2018-02-01 20:50:28 -05:00
Min RK
4b464ffc63
allow NullFutures in gen.multi
...
is_future() only accepts 'real' futures, but NullFutures work here, too.
2018-02-01 11:25:41 +01:00
Min RK
f4e6529225
fix gen.multi with gen.moment
...
fixes assertion in gen.multi when calling convert_yielded with more than one gen.moment or None
convert_yielded can be called with None or [None].
When it is called with [None], gen.multi gets [gen.moment],
which fails assert(is_future) since it is no longer a real Future
2018-01-31 18:08:40 +01:00
Ben Darnell
f64470ec83
Merge pull request #2259 from bdarnell/5.0b1
...
Update release notes and set version to 5.0b1
2018-01-27 18:03:10 -05:00
Ben Darnell
d1a98ec509
Update release notes and set version to 5.0b1
2018-01-27 17:25:34 -05:00
Ben Darnell
5e68d4eb86
Merge pull request #2257 from bdarnell/http2
...
test: Adjust unittest for tornado_http2 compatibility
2018-01-27 13:13:49 -05:00
Ben Darnell
b98db69627
test: Adjust unittests for tornado_http2 compatibility
...
Some recently-introduced tests are failing under tornado_http2, so fix
them.
2018-01-27 12:24:44 -05:00
Ben Darnell
c0e1dcfebc
Merge pull request #2252 from bdarnell/ioloop-current
...
ioloop: current() and friends delegate to asyncio
2018-01-26 21:03:20 -05:00
Ben Darnell
426b3812b9
ioloop: Remove IOLoop.initialized()
...
It is no longer possible to provide this method with reasonable
semantics.
2018-01-26 20:34:29 -05:00
Ben Darnell
df541dccb6
ioloop: current() and friends delegate to asyncio
...
Instead of a redundant IOLoop._current thread-local, pass through
directly to asyncio and maintain a one-to-one mapping of asyncio loops
to IOLoops. This brings us a bit closer to the asyncio-only future.
2018-01-26 20:34:29 -05:00
Ben Darnell
3d6804412f
Merge pull request #2253 from bdarnell/work
...
Misc small fixes for 5.0
2018-01-26 20:30:34 -05:00
Ben Darnell
336da267f0
travis: Ignore failures on nightly
...
This is currently failing with setuptools errors.
2018-01-26 20:09:42 -05:00
Ben Darnell
49804d9d0d
asyncio_test: Fix compatibility with Python 3.7 nightlies
2018-01-26 18:03:58 -05:00
Ben Darnell
10056ae257
test: It's no longer possible to use `async def` via cython on py34
...
The asyncio coroutine runner cannot be made to use backports_abc.
2018-01-26 18:00:57 -05:00
Ben Darnell
6e8a137e68
concurrent: Fix importability of tornado.wsgi on app engine
2018-01-26 18:00:57 -05:00
Ben Darnell
606f0b5e90
locks: Avoid reusing Future objects in Event
...
Now that futures support cancellation, it is unsafe to return the same
Future object to multiple callers.
Fixes #2189
2018-01-26 18:00:57 -05:00
Ben Darnell
b66acec055
websocket: write_message consistently raises WebSocketClosedError
2018-01-26 18:00:57 -05:00
Ben Darnell
c1ae51677b
Revert "Fix error in coverage runs under Py3 with a C locale"
...
This reverts commit e0c489fd02
.
That commit was a workaround for old versions of the coverage package.
Fixes #1895
2018-01-21 15:30:50 -05:00
Ben Darnell
2ec7dca027
gen_test: Add test for asyncio.gather
...
This is additional verification that the asyncio integration is
working as intended.
Fixes #1684
2018-01-21 15:27:34 -05:00
Ben Darnell
871358d407
Merge pull request #2251 from bdarnell/read_into
...
iostream: Add read_into
2018-01-21 14:04:23 -05:00
Ben Darnell
f2020e5de8
iostream: Add read_into method.
...
Tests come from Antoine Pitrou's #2193
Fixes #2176
2018-01-20 22:19:20 -05:00
Ben Darnell
1215cd2631
iostream: Use recv_into and friends in read_from_fd
...
This has the same memory-allocation behavior as before, but it moves
the buffer out of the recv() call to python code.
2018-01-20 22:15:30 -05:00
Ben Darnell
67abb73db1
Merge pull request #2249 from bdarnell/pipe-iostream
...
iostream: Use file objects instead of raw descriptors in PipeIOStream
2018-01-15 12:16:08 -05:00
Ben Darnell
5ab1eba2c2
netutil_test: Disable error tests on TwistedResolver
...
These tests are flaky with the new "messages to stderr are errors"
check.
2018-01-15 11:10:46 -05:00
Ben Darnell
3745755173
test: Count writes to stderr as failures
...
Python 3 logs warnings in destructors if objects responsible for file
descriptors are not explicitly closed. These warnings were previously
being ignored by our test suite unless a human was looking at the log
output, but several recent PRs have introduced these issues. This
change ensures we catch them (and fixes the most recent one in
process_test. The leak has always been there, but the previous commit
caused it to be logged).
2018-01-14 17:12:51 -05:00
Antoine Pitrou
81dd461da3
iostream: Use file objects instead of raw descriptors in PipeIOStream
...
This makes the implementation of PipeIOStream more compatible with
socket streams, and allows for more of the test suite to be used with
it.
Extracted from PR #2193
2018-01-14 14:49:35 -05:00
Ben Darnell
f5df1e4df7
Merge pull request #2248 from bdarnell/work
...
ioloop,gen,asyncio: Improvements to IOLoop GC
2018-01-14 10:16:58 -05:00
David Walker
3e10b90e16
Alter documentation to correctly state behavior ( #2114 )
...
Correctly document that the result of Condition.wait() is
not to raise a TimeoutError, but rather False.
2018-01-13 19:01:51 -05:00
Ben Darnell
e964f98939
ioloop,asyncio: Be more careful to restore old asyncio loop
...
Any asyncio event loop that was created but neither closed nor set as
current for some thread will log a warning at the end of the test (in
a way that doesn't cause the test to fail). Fix a bug in
make_current() (in which multiple calls would clobber
self.old_asyncio) and use it more consistently when "current" status
changes.
2018-01-13 18:58:45 -05:00
Ben Darnell
2d7fb199ca
ioloop: Make clear_current work if called first in a thread
...
Fixes #2240
2018-01-13 18:58:45 -05:00
Antoine Pitrou
8c513117fc
Issue #2229 : allow GCing of suspended coroutines
...
A suspended coroutine should be GCed if the underlying loop is closed
and no other outside reference exists to it. However, a suspended coroutine
with a refcycle would be kept alive by the _futures_to_runners mapping.
Instead use a private attribute on the future.
2018-01-13 14:13:58 -05:00
Ben Darnell
1294b0765f
asyncio: AsyncIOMainLoop.close now closes the underlying loop
2018-01-13 14:13:58 -05:00
Ben Darnell
023a9ac87a
Merge pull request #2245 from ploxiln/shebang_exec
...
make executable git and shebang consistent on various source files
2018-01-13 13:54:23 -05:00
Jehiah Czebotar
bfcf34a95b
demos/file_uploader: add missing __name__ == __main__ stanza
2018-01-06 21:21:41 -05:00
Jehiah Czebotar
8906b3afd8
make executable bit and shebang consistent on various source files
...
setup.py is intended to be run with "python setup.py install"
sources in the tornado module which have main functions/clauses
are intended to be run with "python -m tornado.xxx"
various demos and scripts can be run directly
2018-01-06 20:35:44 -05:00