Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3b55adc2559e38559eca0dbf4b69d198ee596b00
Choose a base ref
...
head repository: nodejs/node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9ab53b4ec432885246b9948c2581d2020921f109
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Nov 3, 2020

  1. tls: reset secureConnecting on client socket

    secureConnecting is never set to false on client TLS sockets.
    So if Http2Session constructor (in lib/internal/http2/core.js) is
    called after secureConnect is emitted, then it will wrongly wait
    for a secureConnect event.
    
    This fix sets secureConnecting to false when a client TLS socket
    has connected.
    
    Backport-PR-URL: #34859
    PR-URL: #33209
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    davedoesdev authored and MylesBorins committed Nov 3, 2020
    Configuration menu
    Copy the full SHA
    66a434b View commit details
    Browse the repository at this point in the history
  2. test: add ALPNProtocols option to clientOptions

    Without this, the session is destroyed with the following error
    
    ```
    Error [ERR_HTTP2_ERROR]: Protocol error
        at Http2Session.onSessionInternalError (internal/http2/core.js:756:26)
    Emitted 'error' event on ClientHttp2Session instance at:
        at emitClose (internal/http2/core.js:1010:10)
        at internal/http2/core.js:1048:7
        at finish (internal/streams/writable.js:731:5)
        at processTicksAndRejections (internal/process/task_queues.js:80:21) {
      code: 'ERR_HTTP2_ERROR',
      errno: -505
    }
    ```
    
    The test then calls `session.close()` which tries to write to a
    destroyed socket. As a result, an unhandled `ECONNRESET` error is
    emitted in the v12 release line.
    
    Backport-PR-URL: #34859
    PR-URL: #35482
    Refs: #34859
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    lpinca authored and MylesBorins committed Nov 3, 2020
    Configuration menu
    Copy the full SHA
    9ab53b4 View commit details
    Browse the repository at this point in the history
Loading