🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #176

TService and Socket Connections

#176
From: 4T
Date: Wed, 28 Jan 2004 09:54
10 lines
1387 bytes
I am using TService and Indy TIdTCPClient in a project that I takes
incomming data from a socket, makes a http call and then sends the
response back through the socket.
The issue I am facing is managing the socket's connection.  The server
I connect to periodically drops my connection creating a Socket 10054
connection reset by peer exception.  This Exception then STOPs the NT
Service that it is contained in.
Please could anyone assist with code or text that can guide me to the
best way to recreate the connection from within my service whilst
keeping the service running.
Technical Details
Message-ID: <c05c85c.0401280154.77c9eec5@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,10e0050591558042,start
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-28 01:54:57 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: loupisp@ananzi.co.za (4T)
Newsgroups: borland.public.delphi.nativeapi
Subject: TService and Socket Connections
Date: 28 Jan 2004 01:54:57 -0800
Organization: http://groups.google.com
Lines: 10
Message-ID: <c05c85c.0401280154.77c9eec5@posting.google.com>
NNTP-Posting-Host: 168.209.97.34
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1075283697 17174 127.0.0.1 (28 Jan 2004 09:54:57 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 28 Jan 2004 09:54:57 +0000 (UTC)