Article View: borland.public.cppbuilder.internet.socket
Article #1265WSAGetLastError return always 6
From: Eduardo Jauch
Date: Mon, 26 Feb 2007 02:54
Date: Mon, 26 Feb 2007 02:54
19 lines
1569 bytes
1569 bytes
Hi! :) I have a loop (inside an thread) the uses send and recv to acces a web page. All works, but after few iterations, one of the recv return 0 bytes, what I think this is wrong, because i'm not setting the socket to nonbloking, and the connection does not time out by server not responding nor something like that. Can not be the send too, because all works ok for a few iterations of teh loop (and I don't change the HEAD method pass to send). I'm using the recv to return only the HEAD (not using GET). When i use WSAGetLastError, always return code 6 I search on help but not find any error code 6 returned by WSAGetLastError... Anyone can help me?
Technical Details
Message-ID:
<45e24baa@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ead06e5a7c488245,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 25 Feb 2007 23:54:23 -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: WSAGetLastError return always 6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 201.3.108.172 Message-ID: <45e24baa@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172458410 201.3.108.172 (25 Feb 2007 18:53:30 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail