Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8304023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:42:21+00:00 2026-06-08T17:42:21+00:00

Pardon me if the question is simple , but I don’t know what will

  • 0

Pardon me if the question is simple , but I don’t know what will happen in this general scenario : If due to some issue or failure / system failure (any kind of failure , etc) the browser crashes , what will happen to a websocket connection that was running ? Will it be closed or what will be its state ?

I am using netty websocket implementation. Now , specifically in netty websocket implementation , in the above scenario , what would happen ? (When I tried , I get this : if I close the browser manually , the connection is closed but if I kill the browser process , this does not happen). If the connection is not closed , how can I detect it / handle it while sending messages , otherwise while sending messages , a ClosedChannelException occurs when trying to send a message.

EDIT : Apart from checking for the above mentioned error , is there a way of knowing that the websocket connection has been closed when using the netty implementation ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:42:23+00:00Added an answer on June 8, 2026 at 5:42 pm

    I think you’ll have to catch ClosedChannelException and handle that in the same way you would for a connection that was cleanly closed.

    If your websocket sessions are expensive and you want to spot killed connections more quickly, you could periodically send a ping request to each client. Netty has a PingWebSocketFrame class which looks like it’d support this for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Pardon this, I know there's are answers out there for these question already. But
Pardon the simple question, but I am pulling my hair out trying to get
Pardon me, this really is a noob question but please understand that I do
First, I am using Wordpress for this project but I don't think this issue
Pardon me if this question sounds trivial, I don't have any experience working with
I beg pardon for not doing homework on this issue and directly asking question
Pardon if this question has been answered but I couldn't find it. I'm kinda
Please pardon the naivety of this question. It's 2:00 AM. In doing some performance
I am a novice to spring dm so pardon my simple question. I downloaded
Pardon if this is a n00b question, I'm a n00b to grails... I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.