Article View: borland.public.cppbuilder.internet.socket
Article #1269Re: WSAGetLastError return always 6
From: Eduardo Jauch
Date: Mon, 26 Feb 2007 10:20
Date: Mon, 26 Feb 2007 10:20
18 lines
1563 bytes
1563 bytes
Eduardo Jauch escreveu: > Eduardo Jauch escreveu: >> Why is recv returning 0? >> It wouldn't wait until receive some data? > > I was reading that this can mean that the connection was closed... > If this is true, I need to check for 0 bytes received and > reconnect/send/recv(in loop) again? > > Thanks! Well... The answer to my question is yes... The server is returning 500 (Internal Server Error)... Maybe the server is set to refuse connection if the client try many "recv" in a short time... I'm trying to reconnect after X milliseconds... Reconnect imediatly don't work...
Technical Details
Message-ID:
<45e2b430$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45e24baa@newsgroups.borland.com> <45e25047$1@newsgroups.borland.com> <45e25927$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ead06e5a7c488245 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 26 Feb 2007 07:20:20 -0300 From: Eduardo Jauch <eduardo.jauch@gmail.com> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: WSAGetLastError return always 6 References: <45e24baa@newsgroups.borland.com> <45e25047$1@newsgroups.borland.com> <45e25927$1@newsgroups.borland.com> In-Reply-To: <45e25927$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 201.89.67.188 Message-ID: <45e2b430$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172485168 201.89.67.188 (26 Feb 2007 02:19:28 -0800) Lines: 18 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail