Article View: borland.public.cppbuilder.internet.socket
Article #2895Re: TClientSocket won't disconnect safely from TServerSocket
From: Bob Gonder
Date: Thu, 05 Jan 2006 13:56
Date: Thu, 05 Jan 2006 13:56
8 lines
1358 bytes
1358 bytes
Maurice Anderson wrote: > while (!Terminated ||ClientSocket->Connected) Shouldn't that be && ? You are staying in the loop until terminated, even if the connection goes away. Since the connection is gone, the waitfor is probably returning immediately, causing a tight loop.
Technical Details
Message-ID:
<a49qr1tvs44jl3mjovf3puqdi6t6l3mbe0@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43bcd080$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3093e14c422eb03f X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: TClientSocket won't disconnect safely from TServerSocket Date: Thu, 05 Jan 2006 05:56:53 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <a49qr1tvs44jl3mjovf3puqdi6t6l3mbe0@4ax.com> References: <43bcd080$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 209.178.162.7 X-Trace: newsgroups.borland.com 1136469281 209.178.162.7 (5 Jan 2006 05:54:41 -0700) Lines: 10 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail