🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Closing TIDTCPServer

#5199
From: Remy Lebeau (TeamB)
Date: Thu, 30 Sep 2004 17:21
15 lines
1365 bytes
"Alfred Thomas" <alfred@fischerint.co.za> wrote in message
news:415c17fa$1@newsgroups.borland.com...

> I have a problem with TIdTCPServer. When disconnect I do
> IdTCPServer->Active = false; but this does not disconnect
> the clients and hangs.

Are you using TThread::Synchronize() or Post/SendMessage() with your client
threads?  The Active property has a known hanging problem if Sychronize() or
Post/SendMessage() are being used to make requests to the thread that owns
the TIdTCPServer.


Gambit
Technical Details
Message-ID: <415c407e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <415c17fa$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ffbbfefff18a50d0
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <415c17fa$1@newsgroups.borland.com>
Subject: Re: Closing TIDTCPServer
Date: Thu, 30 Sep 2004 10:21:11 -0700
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <415c407e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1096564862 68.69.17.41 (30 Sep 2004 10:21:02 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail