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

  • Home
  • SEARCH
  • 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 9205125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:52:44+00:00 2026-06-17T23:52:44+00:00

We are developing a network application on linux using C/S, recently we found that

  • 0

We are developing a network application on linux using C/S, recently we found that the write/read on some open and connected sockets may fail when there are large amount of UDP and TCP data conveying over the bandwith, it looks like the sockets are closed by some unknown reason.

Here comes the questions, please tell me if the TCP will automatically close the sockets or not.

  1. Suppose that there are a sender and a receiver, the sender sends lots of data to the receiver via a TCP non-blocking socket. And suppose there are a lot traffic on the bandwith by the application itself and other applications.
    If the bandwith are totally deployed that the sender don’t have any chance to send out the data, then will the TCP automatically close the socket in some time later? if yes, how much is the time value?

  2. Suppose that the bandwith in question 1 is not fully deployed, and the sender can deliver data to the receiver successfully. But if the receiver doesn’t read the data and in some time later the buffer will fill, then will TCP automatically close the socket in hours?

Any help would be greatly appreciated!!

  • 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-17T23:52:45+00:00Added an answer on June 17, 2026 at 11:52 pm

    I have never heard of a TCP socket closing itself automatically so I doubt that is the case. In the event that the sender can’t send out any data, it would just wait and try again. The only reason a socket would close is if the sender attempts to send data several time, can’t, and then explicitly closes the socket. In the event that the sender has enough bandwidth to send out the data but the receiver lacks the bandwidth to receive it, the protocol itself will resend the data and ensure that it arrived properly (see Wikipedia).

    As for #2, also from Wikipedia (as ott mentioned):

    When a receiver advertises a window size of 0, the sender stops sending data and starts the persist timer. The persist timer is used to protect TCP from a deadlock situation that could arise if a subsequent window size update from the receiver is lost, and the sender cannot send more data until receiving a new window size update from the receiver. When the persist timer expires, the TCP sender attempts recovery by sending a small packet so that the receiver responds by sending another acknowledgement containing the new window size.

    Because TCP has this system in place for determining how much data to send, I assume that a TCP connection could always accept one update packet. In the situation where the buffer is still full, the receiver would continue broadcasting a window size of 0. Unless a piece of software is explicitly closing a socket after X repeated “0 window sizes,” there is no reason for the socket to ever close.

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

Sidebar

Related Questions

I'm developing the application that sending MPEG video over IP network using RTP protocol.
Anyone know application like network location(mac) for linux,windows.If not i am thinking of developing
I'm currently developing an application that will be run on local network in B2B
I'am developing an application for android, which needs network in order to retrieve some
I am developing a network application on iPhone that requires internet connection all the
I'm developing an application that will probe ONVIF devices attached on network for auto-discovery.
I am developing an application in Delphi-2010 using SQL Server 2008 R2 in network
I'm developing a database-driven web application. I'm not always connected to the network so
I'm developing an iPhone application. The application access some web service that aboug other
We're developing a cross-platform network application that needs to send and receive data over

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.