Re: streams/sockets slow to close?
Re: streams/sockets slow to close?
- Subject: Re: streams/sockets slow to close?
- From: Michael Brian Bentley <email@hidden>
- Date: Tue, 24 Dec 2013 13:24:58 -0800
Here's followup to the posting from about a month ago.
I open a tcp socket across what is safe to describe as an iffy PPP
connection. I am able to use the socket as intended, tho at times when
the connection drops, the endpoints appear to work very hard to finish
up, even tho the endpoints no longer can get packets through. They try
to FIN for upwards of seven minutes in our testing.
The reason we had to look at this is that dropped connections confuse
the device we use to establish the PPP connection from the mobile end.
To establish a connection, we open a tcp socket from an iPad, and the
device establishes a PPP connection. When the PPP connection closes for
whatever reason, if the box sees FIN or RST packets from the iPad, even
minutes after the connection was dropped, it assumed it was time to
reconnect.
It turns out that the endpoints really do spend a few minutes attempting
to clean up, and this is known behavior, so if the underlying connection
drops, this is to be expected.
In order to get the box to quit reconnecting on FIN packets, we had to
persuade it to not do that; I offhand don't know what the box developers
ultimately wound up doing, but when the connection is down, the box no
longer tries to connect on a FIN or an RST.
-Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden