GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Support WebSockets over HTTP/2 via RFC 8441 Extended CONNECT · Issue #1112 · apache/pekko-http Open DescriptionProblemPekko HTTP supports HTTP/2 and WebSockets, but WebSocket support currently appears to be limited to the classic HTTP/1.1 upgrade handshake. RFC 8441 defines how to bootstrap WebSockets over HTTP/2 using Extended CONNECT:
This would allow applications to serve HTTP/2 requests and WebSockets on the same HTTP/2 connection instead of falling back to a separate HTTP/1.1 WebSocket upgrade connection. RFC: https://www.rfc-editor.org/rfc/rfc8441.html Current BehaviorPekko HTTP WebSocket handling is based on the HTTP/1.1 upgrade model:
That matches RFC 6455 over HTTP/1.1, but not RFC 8441 over HTTP/2. Expected BehaviorWhen HTTP/2 is enabled, Pekko HTTP should optionally support RFC 8441 WebSockets over HTTP/2. At a high level this likely means:
MotivationModern browsers support WebSockets over HTTP/2 via RFC 8441. Supporting this in Pekko HTTP would allow one server port and one HTTP/2 connection to handle both normal HTTP traffic and WebSockets. This is useful for frameworks built on Pekko HTTP as well. For example, Play Framework can enable HTTP/2 on its Pekko HTTP backend, but WebSocket support still depends on the HTTP/1.1 upgrade path because Pekko HTTP does not currently expose RFC 8441 WebSocket support. NotesNetty has already added several low-level RFC 8441 building blocks, but still tracks high-level WebSocket-over-HTTP/2 support as an open feature request:
A third-party Netty implementation also exists: Questions
Reacted by Emad Alblueshi Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |