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 — When network is turn off Channel#closeFuture method can't is called · Issue #13234 · netty/netty

When network is turn off Channel#closeFuture method can't is called #13234

New issue
Copy link
New issue
Copy link
Closed
Closed
When network is turn off Channel#closeFuture method can't is called#13234
Copy link

Description

@GZYangKui
GZYangKui
opened on Feb 20, 2023
Issue body actions

Expected behavior

When network is turn off Channel#closeFuture method is called

Actual behavior

When network is turn off Channel#closeFuture method can't is called

Steps to reproduce

When I use Vertx, if the network is closed, the NetClient # closeHandler method of Vertx will be called back immediately, but when I use Netty to change the network state, Channel # closeFuture will not be called back. The current solution is to add IdleStateHandler to detect the number and interval of server responses. Is there no mechanism in Netty to detect network changes like Vertx?

Minimal yet complete reproducer code (or URL to code)

none.

Netty version

4.1.87.Final

JVM version (e.g. java -version)

openjdk version "17" 2021-09-14
OpenJDK Runtime Environment (build 17+35-2724)
OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing)

OS version (e.g. uname -a)

Linux yangkui 5.19.0-31-generic #32-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 20 15:20:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Activity

  1. normanmaurer commented on Feb 20, 2023

    @normanmaurer
    normanmaurer
    on Feb 20, 2023
    Member
    More actions

    This is expected when using TCP. You will only be able to detect this when you either try to write or read from the socket or when the idle timeout hits.

  2. normanmaurer
    closed this as completedon Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      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.