🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WSAGetLastError return always 6

#1190
From: Eduardo Jauch
Date: Tue, 27 Feb 2007 03:39
38 lines
2675 bytes
Remy Lebeau (TeamB) escreveu:
> "Eduardo Jauch" <eduardo.jauch@gmail.com> wrote in message
> news:45e38d34@newsgroups.borland.com...
> 
>> I modify the code to show the LAST response before recv
>> returns zero. Is a response ok (HTTP 200), with a Connection: close
> 
> Then the server is intentionally closing the connection after sending
> the reply.  That has nothing to do with the number of requests you
> send.  Any reply can close the connection for any reason.  That is why
> keep-alives have to be negotiated in order to work.
> 

I'll continue reading the documents (RCF) and help to find if I'm doing 
something wrong :) Speccially the parts on keeping alive (to see if I'm 
forgetting something, some parameter, etc)

>> About the cookies, I was wrong. The session cookie change every
>> time I start a connection
> 
> I would expect that.  Then you need to completely re-write your cookie
> management code to actually handle cookies properly.  That is a whole
> other set of RFCs (2109, 2965).

One of them I alread read. :) Because the RFC for HTTP don't mention 
cookies :) I'll look for the other too :)

> 
>> Seens that the server was really programed to close the connection
>> at predefined number of requests of the same connection.
> 
> It has nothing to do with the number of requests.
> 
> 
Maybe not, but I'm not certain of this. But I'll keep tracking bugs on 
my app to find if is an error of mine :)

Thanks :)
Technical Details
Message-ID: <45e3a7cc@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45e24baa@newsgroups.borland.com> <45e31e54$1@newsgroups.borland.com> <45e34585$1@newsgroups.borland.com> <45e358b3$1@newsgroups.borland.com> <45e38d34@newsgroups.borland.com> <45e3908e$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: Tue, 27 Feb 2007 00:39:49 -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> <45e31e54$1@newsgroups.borland.com> <45e34585$1@newsgroups.borland.com> <45e358b3$1@newsgroups.borland.com> <45e38d34@newsgroups.borland.com> <45e3908e$1@newsgroups.borland.com>
In-Reply-To: <45e3908e$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 201.3.108.16
Message-ID: <45e3a7cc@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172547532 201.3.108.16 (26 Feb 2007 19:38:52 -0800)
Lines: 38
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail