FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

The http2 server throws TypeError `server.shouldUpgradeCallback` is not a function · Issue #59922 · nodejs/node · GitHub

/ node Public

The http2 server throws TypeError server.shouldUpgradeCallback is not a function #59922

Description

Version

origin/main branch

Platform

windows "$([Environment]::OSVersion.VersionString) $(('x86', 'x64')[[Environment]::Is64BitOperatingSystem])"

Subsystem

http

What steps will reproduce the bug?

import { createSecureServer } from 'http2'

let server = createSecureServer(...)

server.on('upgrade', () => { ... })

server.listen(443)

// Create a websocket connection to port 443

How often does it reproduce? Is there a required condition?

Must appear

What is the expected behavior? Why is that the expected behavior?

Websocket connection is normal

What do you see instead?

Additional information

relates to: #59824

Can you (@pimterry) add relevant test cases for this PR? http server, http2 server and test websocket connection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL