🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WSAGetLastError return always 6

#1188
From: Remy Lebeau (TeamB)
Date: Tue, 27 Feb 2007 02:02
26 lines
2024 bytes
"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.

> 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).

> 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.


Gambit
Technical Details
Message-ID: <45e3908e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ead06e5a7c488245
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: <45e24baa@newsgroups.borland.com> <45e31e54$1@newsgroups.borland.com> <45e34585$1@newsgroups.borland.com> <45e358b3$1@newsgroups.borland.com> <45e38d34@newsgroups.borland.com>
Subject: Re: WSAGetLastError return always 6
Date: Mon, 26 Feb 2007 18:02:48 -0800
Lines: 28
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: 75.83.34.171
Message-ID: <45e3908e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172541582 75.83.34.171 (26 Feb 2007 17:59:42 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail