Article View: borland.public.cppbuilder.internet.socket
Article #2564Inactivity timeouts in sockets?
From: Martin
Date: Mon, 27 Mar 2006 17:04
Date: Mon, 27 Mar 2006 17:04
40 lines
2521 bytes
2521 bytes
I've got an app that maintains several different socket connections to multiple computers. Most of the connections work fine, but one has been giving lots of problems lately. The ones that work have data flowing fairly consistently, say a minimum of 3-5 packets in a 5 minute period, but can be much more than that. The connection that gives me the problem is one that has periods where nothing is sent/receive for more than 20 minutes. The socket is still connected (no disconnect events or errors), but later on we find that the other side tried to send something that wasn't received by our app. What's more, closing and reopening the socket doesn't appear to reestablish data passage, even though we get the connect event. It typically takes an app restart and/or reboot to get data passing (customer doesn't know difference). Are there lower level timeouts that are occuring that I'm not aware of? Should there be a "keep alive" transmission every so often? Is something else happening here? Tech info: BCB5 using borland's TServerSocket & TClientSocket in asynchronous mode. The failing connection is a server socket running on XP pro. I don't know if it makes any difference but more info is better than none. This particular computer/app is maintaining connections to 6 computers simultaneously and there are two connections to one of them (server socket and client socket). The server socket that is failing is the one to the system that has two connections. Thanks, Marty
Technical Details
Message-ID:
<44281b29$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed101.telia.com!nf02.dk.telia.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,11a7fa37087eb9c,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 27 Mar 2006 09:04:41 -0800 From: Martin <dev@no.comppromed.spam.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Inactivity timeouts in sockets? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 209.204.181.224 Message-ID: <44281b29$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1143479081 209.204.181.224 (27 Mar 2006 09:04:41 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed101.telia.com!nf02.dk.telia.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail