Questions tagged [time-wait]

The TIME_WAIT TCP port state

Indicates that both endpoints of a connection have closed it, and that the local end is keeping the local port in TIME_WAIT state. The system is waiting for any remaining packets to expire before closing the port. This state only lasts 2*MSL seconds where MSL is the maximum segment lifetime, typically 60 or 120 seconds.

The TIME_WAIT state is often erroneously regarded as a performance problem. It isn't, except for the length of netstat displays. However it can be avoided altogether by being the end which receives the first FIN. In practice this means the client should close the connection before the server, so that the ports in TIME_WAIT state accumulate at the client, where they are few, rather than at the server, where they are very many.

108 questions
0
votes
1 answer

Zabbix agent windows TIME_WAIT sockets

I have a big problem with Zabbix windows agent. The agent has lot of sockets in time_wait state: ........... TCP 10.0.10.4:10050 10.0.10.8:38681 TIME_WAIT 0 TCP 10.0.10.4:10050 10.0.10.8:38683 TIME_WAIT 0 …
J.R.
  • 2,335
  • 2
  • 19
  • 21
0
votes
2 answers

How to insert a time gap of 2 seconds between execution of two statements in C#?

I am building a simple 2D game using Unity.In my C# script,i want to insert a gap of 2 seconds between two consecutive statements. void OnGUI() { GUI.Button (new Rect(400,40,45,45),"text1"); // time gap statement GUI.Button (new…
Ankur Lathwal
  • 725
  • 1
  • 7
  • 24
0
votes
1 answer

Make Swing operations immediate

I have a method in Swing to hide and show some buttons, called setScreen(int stage), which will hide or not certain buttons depending on the stage parameter. I want to call the method, then wait a few seconds and then call it again, like in this…
user2891462
  • 3,033
  • 2
  • 32
  • 60
0
votes
1 answer

HttpListener leaves connections in TIME_WAIT

I have a simple C# Windows Service that should respond "OK" to GET requests on port 8080. Everything works fine, with one simple itch... Every single request made to the service stays in TIME_WAIT. Am I missing something, I've looked around and most…
Milkshake
  • 31
  • 7
0
votes
1 answer

Sleep but with interval update

I am using Visual Basic.net with a BackGround Worker. I am wanting to wait for x milliseconds but to update a Label with the current wait value. How can I do this? I am using this code at the moment: Threading.Thread.Sleep(5000) What else can I use…
Simon
  • 351
  • 3
  • 8
  • 16
0
votes
1 answer

Wait until print is complete - Jquery Asp.net MVC

I am a newbie. please excuse me if it is a very basic question. I am hiding and showing CSS on window.print(). on IE8 and FF The page execution stops until i respond on print ( either print or cancel) and then it starts again and completes the page…
bluwater2001
  • 7,829
  • 5
  • 24
  • 21
0
votes
1 answer

tcp connection in TIME_WAIT won't allow reconnect, java

After making a tcp connection to a server, I close my linux application and Socket.close() is called. Checking netstat -pant, I see the connection is in TIME_WAIT status. This prevents me from making an immediate connection back to the server since…
jbu
  • 15,831
  • 29
  • 82
  • 105
0
votes
1 answer

reduce HTTPS waiting time?

I force SSL because of the limitations in PHP sessions because I have AJAX logins (http and https don't keep the same session id on the same site). Chrome network reports ~150ms in waiting for all resources. I was able to reduce by 100ms to 150ms…
user1382306
0
votes
2 answers

How to use wait() method in android programming for the splash?

I would like to make a splash for my android app. The function is that when the app is open, first shows the splash page. Until get the first data from GPS, then it turns to the main activity. There is some problems for the wait() in my code…
HeikiCyan
  • 157
  • 1
  • 2
  • 11
0
votes
0 answers

Wait in console

Possible Duplicate: Pausing a batch file for amount of time How I can make wait x sec in console (cmd), without "timeout" command?
user95644
0
votes
1 answer

how to give interval in a program process using timer control c#/.net

how can i give interval in a program process using timer control. Like: while(progressBar1.Value ! = 10) { progressBar1.Value = progressBar1.value + 1; //i want to give 10 seconds interval here }
VICKY Shastri
  • 133
  • 2
  • 3
  • 12
0
votes
1 answer

is there any way to manage the waiting time of mysql

whenever we are firing a insert query, for that point of instant that particular table is locked for a span of time. That time can be some micro seconds or some seconds depending upon the row need to be inserted in database. I am developing an…
KuKu
  • 646
  • 2
  • 15
  • 38
0
votes
1 answer

how many ways to reduce the number of TIME_WAIT as soon as possible in client

If we must connect the db (redis)every time we need to write to or read from the db .After some operates then close the connection . Because the connect is frequently (assume the case must connect and then close) .As a result ,Too many TIME_WAIT…
jiamo
  • 1,406
  • 1
  • 17
  • 29
-1
votes
1 answer

TIME-WAIT connection refuse to accept a new SYN even it has a lager ISN

According to this SO post Can a TCP port be re-used before TIME-WAIT expires?, TIME-WAIT could be reused if the newly SYN packet has a larger ISN. But the following SYN failed event if it has a larger ISN than the elder connection. Detailed…
-1
votes
1 answer

Socket occupied by TIME_WAIT status

I can see TIME_WAIT on port 9180 with "netstat -an cmd" and see nothing with "lsof -i:9180". My application could not start and report the socket had been occupied.
rocksun
  • 409
  • 1
  • 5
  • 7