GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Enable Websocket compression. Fixes #10863 · playframework/playframework@b424797

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • transport/server/play-netty-server/src/main/scala/play/core/server
    • NettyServer.scala
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎transport/server/play-netty-server/src/main/scala/play/core/server/NettyServer.scala‎

Copy file name to clipboardExpand all lines: transport/server/play-netty-server/src/main/scala/play/core/server/NettyServer.scala
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import io.netty.channel.nio.NioEventLoopGroup
2727
import io.netty.channel.socket.nio.NioServerSocketChannel
2828
import io.netty.channel.unix.UnixChannelOption
2929
import io.netty.handler.codec.http._
30+
import io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketServerCompressionHandler
3031
import io.netty.handler.logging.LogLevel
3132
import io.netty.handler.logging.LoggingHandler
3233
import io.netty.handler.ssl.SslHandler
@@ -236,6 +237,7 @@ class NettyServer(
236237
pipeline.addLast("decoder", new HttpRequestDecoder(maxInitialLineLength, maxHeaderSize, maxChunkSize))
237238
pipeline.addLast("encoder", new HttpResponseEncoder())
238239
pipeline.addLast("decompressor", new HttpContentDecompressor())
240+
pipeline.addLast("ws-compressor", new WebSocketServerCompressionHandler())
239241
if (logWire) {
240242
pipeline.addLast("logging", new LoggingHandler(LogLevel.DEBUG))
241243
}

0 commit comments

Comments
0 (0)
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.