Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Candidate fix for #526 (unsupported _context param) #565

Closed
wants to merge 29 commits into from

Commits on Apr 17, 2018

  1. Merge pull request #1 from eventlet/master

    refresh fork from upstream repository
    nat-goodspeed committed Apr 17, 2018
    Configuration menu
    Copy the full SHA
    096f07e View commit details
    Browse the repository at this point in the history

Commits on May 1, 2018

  1. Configuration menu
    Copy the full SHA
    0db7c9c View commit details
    Browse the repository at this point in the history

Commits on May 7, 2018

  1. Configuration menu
    Copy the full SHA
    dc74c69 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2018

  1. Configuration menu
    Copy the full SHA
    ba8a78a View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2018

  1. Configuration menu
    Copy the full SHA
    223352f View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2018

  1. Configuration menu
    Copy the full SHA
    841a090 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2018

  1. Configuration menu
    Copy the full SHA
    2830dd6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6b2f52b View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2018

  1. Configuration menu
    Copy the full SHA
    a0d6f1d View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2019

  1. Configuration menu
    Copy the full SHA
    b96b5c5 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2019

  1. Configuration menu
    Copy the full SHA
    4cf2cfe View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2019

  1. Configuration menu
    Copy the full SHA
    bdec067 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2019

  1. Configuration menu
    Copy the full SHA
    cf5fc35 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2019

  1. Configuration menu
    Copy the full SHA
    fe97d9b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0bcfa5b View commit details
    Browse the repository at this point in the history

Commits on May 4, 2019

  1. Configuration menu
    Copy the full SHA
    e9cc890 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2019

  1. Issue eventlet#526: Make tests.run_python() raise on timeout or bad s…

    …tatus.
    
    On child-process timeout, instead of merely returning a string containing
    'FAIL - timed out', raise AssertionError so the calling test actually fails.
    Adjust test_run_python_timeout() to expect that AssertionError.
    
    Also, even when expect_pass=False, check child-process rc, and raise
    AssertionError if it's not in the list of allowable values. Add a new keyword
    parameter 'allow' whose default value is [0].
    
    Modify tests.patcher_test.MonkeyPatch.test_typeerror(), which expects rc 1, to
    pass allow=[1]. Modify patcher_test.ProcessBase.launch_subprocess() to pass
    through arbitrary keyword arguments to run_python() to support that.
    nat-goodspeed committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    1479665 View commit details
    Browse the repository at this point in the history
  2. Issue eventlet#526: Introduce a self-serving HTTPS test.

    The new monkey_patch_socket_https_526.py test script depends on an 'openssl'
    executable in the PATH. Using this, it creates temporary certificate files
    with which to populate an SSLContext so that a local server can accept HTTPS
    connections.
    
    We run it by tests.openssl_test.test_https() calling run_isolated() to launch
    a new Python interpreter without eventlet imports. For the same reason, the
    test script uses multiprocessing to launch the server as a separate process.
    Only the client code imports eventlet and uses monkey_patch(socket=True),
    which drives the reported issue.
    nat-goodspeed committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    1da5e5b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6910105 View commit details
    Browse the repository at this point in the history
  4. Issue eventlet#526: Make tests.run_python() more verbose on fail.

    Print the child process output in addition to reporting its rc.
    
    Fix tests.test_run_python_timeout() str/bytes mismatch.
    nat-goodspeed committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    6e38c45 View commit details
    Browse the repository at this point in the history
  5. Issue eventlet#526: Can't use ## to comment out a Python statement

    At least not according to pycodestyle.
    nat-goodspeed committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    3cfe1a8 View commit details
    Browse the repository at this point in the history
  6. Issue eventlet#526: Request requests for new HTTPS test script.

    Also revert specifying exactly Python 3.7.3, which is no longer current.
    nat-goodspeed committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    b049e56 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fad5839 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9e08dcb View commit details
    Browse the repository at this point in the history
  9. Issue eventlet#526: Leave 'requests' version open-ended.

    Not all of our tox environments support the current version of requests.
    nat-goodspeed committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    ba5659e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1c6fa43 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    619ac2d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    6472c4e View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2019

  1. Issue eventlet#526: Make GreenSSLSocket override _create() with a fix.

    Remove GreenSSLContext.wrap_socket() override, which
    blows up with the original
    TypeError: wrap_socket() got an unexpected keyword argument '_context'
    exception. Instead, set GreenSSLContext.sslsocket_class to GreenSSLSocket,
    which obviates the wrap_socket() override.
    
    Also, for Python 3.7, remove GreenSSLSocket.__new__() override, which blows up
    because SSLSocket._create() calls __new__() with (default) socket=None.
    
    Python 3.7's SSLSocket._create() does the heavy lifting of instantiating
    SSLSocket, whose __init__() method unconditionally raises TypeError to
    discourage hand-constructing SSLSocket. Unfortunately, from SSLSocket's
    subclass GreenSSLSocket, _create()'s super(SSLSocket, self).__init__(...) call
    reaches SSLSocket.__init__(), producing that TypeError. Replicate base-class
    _create() into GreenSSLSocket, except directly call socket.socket.__init__(),
    which that call is intended to reach.
    nat-goodspeed committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    624b208 View commit details
    Browse the repository at this point in the history