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 — Arm force-close timeout when an inbound CLOSE frame is echoed by normanmaurer · Pull Request #17574 · netty/netty

Arm force-close timeout when an inbound CLOSE frame is echoed #17574

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.

Sign up for GitHub

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

Merged
normanmaurer merged 6 commits into 4.2 from ws-close-1b430108
Oct 1, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

Arm force-close timeout when an inbound CLOSE frame is echoed #17574

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit Hold shift + click to select a range
34b6a4b
Arm force-close timeout when an inbound CLOSE frame is echoed
normanmaurer Sep 21, 2026
308afa0
Close the channel directly from the force-close timeout
normanmaurer Sep 22, 2026
c4eb1c0
Cascade closeSent() instead of overwriting an in-flight promise
normanmaurer Sep 26, 2026
1b1e5fd
Merge branch '4.2' into ws-close-1b430108
normanmaurer Sep 28, 2026
7c04c3b
Use 10 seconds as default
normanmaurer Sep 29, 2026
dd650fb
Merge branch '4.2' into ws-close-1b430108
normanmaurer Oct 1, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
Use 10 seconds as default
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
normanmaurer committed Sep 29, 2026
commit 7c04c3b67b2d71b94166ab839c367dde2ddeea41

Some comments aren't visible on the classic Files Changed page.

There are no files selected for viewing

3 changes: 2 additions & 1 deletion 3 ...p/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientProtocolConfig.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import java.net.URI;

import static io.netty.handler.codec.http.websocketx.WebSocketServerProtocolConfig.DEFAULT_FORCE_CLOSE_TIMEOUT_MILLIS;
import static io.netty.handler.codec.http.websocketx.WebSocketServerProtocolConfig.DEFAULT_HANDSHAKE_TIMEOUT_MILLIS;
import static io.netty.util.internal.ObjectUtil.checkPositive;

Expand Down Expand Up @@ -193,7 +194,7 @@ public static Builder newBuilder() {
WebSocketCloseStatus.NORMAL_CLOSURE,
DEFAULT_DROP_PONG_FRAMES,
DEFAULT_HANDSHAKE_TIMEOUT_MILLIS,
-1,
DEFAULT_FORCE_CLOSE_TIMEOUT_MILLIS,
false,
DEFAULT_GENERATE_ORIGIN_HEADER,
DEFAULT_WITH_UTF8_VALIDATOR);
Expand Down
3 changes: 1 addition & 2 deletions 3 ...c-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketProtocolHandler.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundHandler;
import io.netty.channel.ChannelPromise;
Expand Down Expand Up @@ -55,7 +54,7 @@ abstract class WebSocketProtocolHandler extends MessageToMessageDecoder<WebSocke
* {@code true} if {@link PongWebSocketFrame}s should be dropped
*/
WebSocketProtocolHandler(boolean dropPongFrames) {
this(dropPongFrames, null, 0L);
this(dropPongFrames, null, WebSocketServerProtocolConfig.DEFAULT_FORCE_CLOSE_TIMEOUT_MILLIS);
}

WebSocketProtocolHandler(boolean dropPongFrames,
Expand Down
6 changes: 4 additions & 2 deletions 6 ...p/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolConfig.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
public final class WebSocketServerProtocolConfig {

static final long DEFAULT_HANDSHAKE_TIMEOUT_MILLIS = 10000L;
static final long DEFAULT_FORCE_CLOSE_TIMEOUT_MILLIS = 10000L;

private final String websocketPath;
private final String subprotocols;
Expand Down Expand Up @@ -115,8 +116,9 @@ public Builder toBuilder() {
}

public static Builder newBuilder() {
return new Builder("/", null, false, DEFAULT_HANDSHAKE_TIMEOUT_MILLIS, 0L,
true, WebSocketCloseStatus.NORMAL_CLOSURE, true, WebSocketDecoderConfig.DEFAULT);
return new Builder("/", null, false, DEFAULT_HANDSHAKE_TIMEOUT_MILLIS,
DEFAULT_FORCE_CLOSE_TIMEOUT_MILLIS, true, WebSocketCloseStatus.NORMAL_CLOSURE, true,
WebSocketDecoderConfig.DEFAULT);
}

public static final class Builder {
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
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.