03-08-2009
Yes, it is really essential!!
For one thing, consider a socket that has sent the final packet which is an ACK to acknowledge the final FIN packet. If everything works right, this is the end of the connection. But what if that final ACK packet gets lost? The other side will timeout and retransmit the final FIN. A socket in TIME_WAIT will be able to retransmit that final ACK, thus allowing the other side to close down.
The other problem is wandering duplicates, packets which seemed to have disappeared, but really just got lost for a while and then finally arrived. A socket in TIME_WAIT has enough information to recognize them for what they are, and simply discard them. If the socket was destroyed somehow and a new connection is established that looks like the old connection, wandering duplicates from the first connection will be delivered to the second connection, possibly injecting garbage into the data stream.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
My machine is Enterprise 250, solaris 2.6, with Oracle 9iApplication Server( 1022) and Apache 1.3 running.
The problem is the machine appears to be slow when accessed from remote. when we login, it takes time to connect, when we type it appears after some time and so on...
I have... (3 Replies)
Discussion started by: shibz
3 Replies
2. IP Networking
Why would I get TIME_WAIT when i netstat a port?? What would be some scenarios of this situation?? (1 Reply)
Discussion started by: eloquent99
1 Replies
3. UNIX for Advanced & Expert Users
What is the maximum number of TCP ports that can be consumed at any one time? How can I determine what the number is or increase it?
I was under the impression that with our system (UnixWare 7.1.1) 1024 was the maximum under our current Kernel tuning parms, but I think that is really just... (4 Replies)
Discussion started by: dlkox
4 Replies
4. Solaris
One of my zone is stuck in down state, not able to boot it or halt it .. not even detach .. is there any way to recover without rebooting the whole system ( global zone ) ? (3 Replies)
Discussion started by: fugitive
3 Replies
5. Red Hat
Hi,
I want to kill TCP connections which have status as TIME_WAIT & no PID
(as per the output of the "netstat - p" command).
Is there any command/utility available to kill connections to a specific port or IP address.
The problem is that these connections don't have process ID (see... (4 Replies)
Discussion started by: Davinder31may
4 Replies
6. UNIX for Dummies Questions & Answers
Server has more TIME_WAIT connections in Apache(port 80) Hi,
My webserver has 16GB of RAM and CentOS 5.5, Apache 2.2.3, It's shared webserver used of for webhosting. I have optmized the server as :
<IfModule prefork.c>... (4 Replies)
Discussion started by: chandranjoy
4 Replies
7. Solaris
Hi all,
One of my zone is stuck in down state, not able to boot it or halt it
root@xpm9ka1 # zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
2 bsmrxdb4 down /zones/bsmrxdb4 native shared
root@xpm9ka1 # zoneadm -z bsmrxdb4 boot
zoneadm: zone... (6 Replies)
Discussion started by: peppeunz
6 Replies
8. AIX
Hi Admins,
I am having a whole system lpar in open firmware state on HMC.
How can I bring it to running state ?
Let me know. Thanks. (2 Replies)
Discussion started by: snchaudhari2
2 Replies
9. Web Development
Here is very good video from Evan You, founder of Vue.js, on the state of Vue.js
State of Vuenation with Evan You
Here is a nice PDF report on Vue.js
Update State of Vue.js Report
Vue.js is now the second most starred project on GitHub, recently surpassing Bootstrap.
These two... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT DEBIAN
poe::component::server::simplehttp::connection
POE::Component::Server::SimpleHTTP::Connection(3pm) User Contributed Perl Documentation POE::Component::Server::SimpleHTTP::Connection(3pm)
NAME
POE::Component::Server::SimpleHTTP::Connection - Stores connection information for SimpleHTTP
SYNOPSIS
use POE::Component::Server::SimpleHTTP::Connection;
my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket );
# Print some stuff
print $connection->remote_port;
DESCRIPTION
This module simply holds some information from a SimpleHTTP connection.
METHODS
my $connection = POE::Component::Server::SimpleHTTP::Connection->new( $socket );
$connection->remote_ip(); # Returns remote ip in dotted quad format ( 1.1.1.1 )
$connection->remote_port(); # Returns remote port
$connection->remote_addr(); # Returns true remote address, consult the L<Socket> POD
$connection->local_addr(); # Returns true local address, same as above
$connection->local_ip(); # Returns local ip in dotted quad format ( 1.1.1.1 )
$connection->local_port(); # Returns local port
$connection->dead(); # Returns a boolean value whether the socket is closed or not
$connection->ssl(); # Returns a boolean value whether the socket is SSLified or not
$connection->sslcipher(); # Returns the SSL Cipher type or undef if not SSL
$connection->ID(); # unique ID of this connection
EXPORT
Nothing.
SEE ALSO
POE::Component::Server::SimpleHTTP, POE::Component::Server::SimpleHTTP::Response
AUTHOR
Apocalypse <apocal@cpan.org>
Chris "BinGOs" Williams <chris@bingosnet.co.uk>
COPYRIGHT AND LICENSE
Copyright X Apocalypse and Chris Williams
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-12-28 POE::Component::Server::SimpleHTTP::Connection(3pm)