🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2012

Re: help with Indy Telnet

#2012
From: Andre' Burke
Date: Wed, 06 Sep 2006 04:59
32 lines
2676 bytes
Well it seems I have solved the problem.

I discovered (I dont know how I missed this one, too much in the log files 
maybe) that there was a slight issue with the server app that caused a 
failed connection once in a long while (socket error 10061, Connection 
Refused).
This happened every time that this strange behaviour of my service occurred.
Seems what was happening is that for a moment the server was not accepting 
connections and at that moment my service tried to connect.  I then "timed 
out" after 10 seconds and tried to disconnect because I wasn't getting any 
data.
Attempting to disconnect at this point for some reason caused everything to 
stop dead.

First I simply removed the call to MyDisconnect so that even though I timed 
out, I did nothing about it.
This allowed the TIdTelnet component to "recover" from the exception on its 
own and processing continued as normal.

Next I went and cleaned up the code in the server just a little, which now 
seems to prevent the 'connection refused' error from happening at all 
(server was not releasing the old connection correctly under all 
circumstances and so could not pick up a new one).

It's now been running for 15 hours straight with not a problem in sight.
And thats with connecting and disconnecting twice every 20 seconds.

So far it looks good.

This make any sense?

Andre'
Technical Details
Message-ID: <44fe55a9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44f68cef@newsgroups.borland.com> <44f6917c$1@newsgroups.borland.com> <44f69c27@newsgroups.borland.com> <adsdf2dk8k4s0tefv5r49fi67ghjs6rlmt@4ax.com> <44f7d1ac$1@newsgroups.borland.com> <44f7e8a0$1@newsgroups.borland.com> <44f7ef1a@newsgroups.borland.com> <44f86462$1@newsgroups.borland.com> <4veof257rj29kb6armgc2qgsds3q512tqh@4ax.com> <44fc7c6c$1@newsgroups.borland.com> <44fd6bbc@newsgroups.borland.com> <44fdc097$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3d66693bd859a203
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andre' Burke" <no.spam@spam.no>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <44f68cef@newsgroups.borland.com> <44f6917c$1@newsgroups.borland.com> <44f69c27@newsgroups.borland.com> <adsdf2dk8k4s0tefv5r49fi67ghjs6rlmt@4ax.com> <44f7d1ac$1@newsgroups.borland.com> <44f7e8a0$1@newsgroups.borland.com> <44f7ef1a@newsgroups.borland.com> <44f86462$1@newsgroups.borland.com> <4veof257rj29kb6armgc2qgsds3q512tqh@4ax.com> <44fc7c6c$1@newsgroups.borland.com> <44fd6bbc@newsgroups.borland.com> <44fdc097$1@newsgroups.borland.com>
Subject: Re: help with Indy Telnet
Date: Wed, 6 Sep 2006 06:59:22 +0200
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 196.38.124.67
Message-ID: <44fe55a9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1157518761 196.38.124.67 (5 Sep 2006 21:59:21 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail