Networking Forums

Networking Forums > Computer Networking > Windows Networking > Delay in Detecting that a Tcp Socket Connection (Wireless) is RESET ... Pls Help !

Reply
Thread Tools Display Modes

Delay in Detecting that a Tcp Socket Connection (Wireless) is RESET ... Pls Help !

 
 
Shashank Welankar
Guest
Posts: n/a

 
      05-19-2004, 06:37 AM
Hello,

I have an Application which is a Tcp Server. Many PDA connect to it
(Wireless) and the work goes on successfully. However one problem is
identified as it is tested for connection reset.

Here is the details of problem:
When a connected wireless client is disconnected normally by closing the
socket, the Server correctly detect this and connection cleanup Code runs.
But if the PDA is physically disconnected or switched off, then the
connection closed (or FD_CLOSE) event is not raised at Server, due to which
Connection cleanup code is not running, until approx. 10 minutes (after
which the Disconnect event occurs and cleans-up resources).

Also, if the connection is created with a wired device, then this problem
doesn't occur. The Disconnected event is raised as soon as the device
unplugged or switched off. Therefore, things are OK, with wired devices.

I am Interested in knowing, What is so different in both, such that the
behaviour of TCP/IP is changed ?
Also, Is any Suggestion to over come from this problem. I tried the
"SO_KEEPALIVE" option of WinSock, but didn't helped. I called the
setsockopt() function like this-

//==================================
>> BOOL bTcpKeepAlive = TRUE ;
>> nResult = setsockopt(skNewConnection, SOL_SOCKET, SO_KEEPALIVE,

(LPCSTR)&bTcpKeepAlive, sizeof(BOOL) ) ;
//==================================

Is there any option to set the duration of Keep_Alive Packets ?

Any Suggestions Please ...
Regards.

-Vipul Pathak ;


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
detecting wireless networks and creating a new local area connection badboybobbing Wireless Internet 1 01-20-2008 12:34 PM
detecting tcp/udp socket bind in kernel module hari_kannan@hotmail.com Linux Networking 0 03-21-2007 05:34 PM
Wireless connection delay in Windows XP mEANgENE Wireless Networks 1 04-07-2006 05:29 PM
Fast swithch user causes wireless connection to reset SWUWP Wireless Networks 0 04-05-2006 10:21 PM
Connetion reset by peers (Socket Programming) in a Clinet Server Model ???? girishdomain@gmail.com Linux Networking 1 05-25-2005 05:38 AM



1 2 3 4 5 6 7 8 9 10 11