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 8924491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:25:55+00:00 2026-06-15T07:25:55+00:00

I have an HTTP server implemented with Netty. It takes long-poll connections for pushing

  • 0

I have an HTTP server implemented with Netty. It takes long-poll connections for pushing messages to the browsers. In most of the times, the server won’t try to close the connection.

In a TCP session, if any side wants to close the connection, it sends a FIN packet to the other. What if the server doesn’t receive FIN from the client, in the cases such as 1) the user has hard network failures or 2) someone tries to attack the server, is it guaranteed that the Netty server will receive a timeout (or other kind of) exception after a given time?

If it’s true, I don’t need to add a Read/WriteTimeoutHandler into my channel pipeline which closes the channel when the Timer triggers timeout. I have to close the channel in either way, otherwise I will leak resources.

  • 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-15T07:25:56+00:00Added an answer on June 15, 2026 at 7:25 am

    is it guaranteed that the Netty server will receive a timeout (or other kind of) exception after a given time?

    No. There is a SocketTimeoutException that is thrown if the socket is in blocking mode and a read timeout has been set. There is an IOException: connection reset which can happen if TCP keepalive has been enabled and the connection really stays broken for 2 hours: this does not include the case where the peer is merely silent with the connection remaining operative. Otherwise no.

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

Sidebar

Related Questions

I'm trying to implement an http long polling server in Node.js, and have no
I have a network server that was implemented using Jboss Netty. It servers the
I have implemented a really simple C# Http Server using HttpListener within a windows
I have implemented Responsive Slider on my test server: http://test-orange.com/resp/ If you watch the
I have implemented my Server application regarding this post here: http://www.codeguru.com/csharp/csharp/cs_network/sockets/article.php/c8781#Client1 Sum up: I
We have a http server which is implemented based on Java NIO. It is
I implemented push notifications using APNS-PHP http://code.google.com/p/apns-php/ on my server. I now have to
I have my Apache http server running on localhost:80 and restlet server on localhost:8182,
I have some pdf files located on a http server: Like: http://domain.com/files/file1.pdf http://domain.com/files/file1.pdf http://domain.com/files/file1.pdf
We have Tomcat application server set up at port 8080 and Apache Http Server

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.