Permalink
Commits on May 29, 2017
  1. Merge pull request #2063 from bdarnell/ioloop-instance

    ioloop: Redefine instance() in terms of current()
    bdarnell committed on GitHub May 29, 2017
  2. Merge pull request #2064 from bdarnell/cloexec

    tcpclient,netutil: Set FD_CLOEXEC on all sockets created by Tornado
    bdarnell committed on GitHub May 29, 2017
  3. tcpclient,netutil: Set FD_CLOEXEC on all sockets created by Tornado

    PR #1984 was based on the mistaken belief that we were already
    doing this (and in python 3.4+, it's true, thanks to PEP 446). This
    Fixes a regression introduced in Tornado 4.5 in which autoreload would
    leak file descriptors and leave client connections hanging.
    
    Fixes #2057
    bdarnell committed May 29, 2017
Commits on May 28, 2017
  1. ioloop: Redefine instance() in terms of current()

    This aligns us more closely with asyncio, which only has a single
    get_event_loop() function. Most uses of instance() are simply a
    holdover from before current() was introduced and are not actually
    relying on its slightly different behavior, so we redefine it (and the
    related methods install(), initialized(), and clear_instance()) in
    terms of current().
    bdarnell committed May 28, 2017
Commits on May 27, 2017
  1. Merge pull request #2062 from bdarnell/configure-pollioloop

    ioloop: Make PollIOLoop separately configurable
    bdarnell committed on GitHub May 27, 2017
  2. ioloop: Make PollIOLoop separately configurable

    This makes it possible to construct a PollIOLoop even when the default
    IOLoop is configured to something else.
    bdarnell committed May 27, 2017
  3. util: Enable multiple configurable bases in one hierarchy

    This allows a mid-level class like PollIOLoop to have its own
    configurability.
    bdarnell committed May 27, 2017
  4. Merge pull request #2052 from bdarnell/deprecated

    all: Remove deprecated io_loop arguments
    bdarnell committed on GitHub May 27, 2017
Commits on May 26, 2017
  1. Merge pull request #2028 from pitrou/close_exc_info

    Avoid IOStream.close(exc_info=True)
    bdarnell committed on GitHub May 26, 2017
Commits on May 22, 2017
  1. concurrent: Remove use of self.io_loop from run_on_executor

    bdarnell committed May 22, 2017
  2. all: Remove deprecated io_loop arguments

    IOLoop.current() is now used in all cases; it is no longer possible to
    pass IOLoops around and use them directly. This occasionally requires
    awkward workarounds with IOLoop.run_sync, but mainly in test code
    (and the synchronous HTTPClient).
    bdarnell committed May 22, 2017
Commits on May 21, 2017
  1. testing: Remove deprecated get_unused_port()

    This function never did a good job and has long since been deprecated
    in favor of bind_unused_port.
    bdarnell committed May 21, 2017
  2. Merge pull request #2002 from nvllsvm/master

    Fetch absolute URL in AsyncHTTPTestCase
    bdarnell committed on GitHub May 21, 2017
  3. Merge pull request #2051 from bdarnell/appveyor-speedup

    build: Speed up appveyor tests by not running the full matrix.
    bdarnell committed on GitHub May 21, 2017
  4. build: Speed up appveyor tests by not running the full matrix.

    Only run partial tests in two of the four environments.
    bdarnell committed May 21, 2017
  5. Merge pull request #2050 from bdarnell/appveyor-config

    build: Don't double-test on appveyor
    bdarnell committed on GitHub May 21, 2017
  6. Merge pull request #2048 from bdarnell/option-redefinition

    options: Report redefinition errors when underscores are used
    bdarnell committed on GitHub May 21, 2017
  7. Merge pull request #2045 from bdarnell/websocket-raise

    websocket: Don't swallow exceptions in _write_frame
    bdarnell committed on GitHub May 21, 2017
  8. Merge pull request #2038 from schlamar/patch-2

    don't check error code in test_set_close_exec
    bdarnell committed on GitHub May 21, 2017
Commits on May 20, 2017
  1. Merge pull request #2047 from bdarnell/assert-pid

    ioloop: Document the incompatibility of IOLoop and fork()
    bdarnell committed on GitHub May 20, 2017
  2. Merge pull request #2046 from bdarnell/cookie-docs

    web: Clarify cookie method docs
    bdarnell committed on GitHub May 20, 2017
  3. build: Don't double-test on appveyor

    Pointed out in #2028
    bdarnell committed May 20, 2017
  4. Test fetch full URL if applicable

    nvllsvm committed Apr 5, 2017
  5. Merge pull request #2024 from pjknkda/master

    websocket: optimize C websocket_mask function
    bdarnell committed on GitHub May 20, 2017
  6. Merge pull request #2022 from coldnight/master

    Fix CurlAsyncHTTPClient cause memory leak with `force_instance=True`
    bdarnell committed on GitHub May 20, 2017
  7. options: Report redefinition errors when underscores are used

    Fixes #2020
    bdarnell committed May 20, 2017
  8. websocket: Don't swallow exceptions in _write_frame

    Swallowing the exception violated the method's interface (by returning
    None instead of a Future), and differs from stream-closed behavior in
    other contexts in Tornado.
    
    Fixes #1980
    bdarnell committed May 20, 2017
  9. ioloop: Document the incompatibility of IOLoop and fork()

    Fixes #2004
    bdarnell committed May 20, 2017
  10. web: Clarify cookie method docs

    Be explicit that get_cookie cannot see the cookies set within the
    current request, avoiding confusion as seen in #1993
    bdarnell committed May 20, 2017
  11. Merge pull request #1979 from SuminAndrew/responses-py2-py34

    web: Don't raise on unknown HTTP response codes
    bdarnell committed on GitHub May 20, 2017
  12. Bump master version to 5.0.dev1

    bdarnell committed May 20, 2017
Commits on May 8, 2017
  1. don't check error code in test_set_close_exec

    schlamar committed on GitHub May 8, 2017
Commits on Apr 27, 2017
  1. Avoid IOStream.close(exc_info=True)

    close(exc_info=True) calls sys.exc_info() to get the "current" exception.
    Unfortunately, on Python 2 this is the last raised exception even if it
    was caught and silenced (by contrast with Python 3, which has lexically
    nested exceptions).  This could set ``IOStream.error`` and therefore
    ``TCPClient.connect``'s raised exception to the wrong error.
    
    Fix by passing the explicit error instance instead.
    pitrou committed Apr 27, 2017
Commits on Apr 26, 2017
  1. Merge pull request #2025 from chrisgavin/python3

    Fix file upload demo on Python 2.
    ajdavis committed on GitHub Apr 26, 2017
  2. fix build failure in MSVC compiler

    pjknkda committed Apr 26, 2017