Article View: borland.public.cppbuilder.internet.socket
Article #1087Re: TIdHTTPClient read blocking when keep-alive is enabled
From: emerson.pardo
Date: Fri, 04 May 2007 20:14
Date: Fri, 04 May 2007 20:14
25 lines
2007 bytes
2007 bytes
I've forgot to say that the Indy version I'm using is 9.0.18.
[]s
On 3 maio, 15:55, emerson.pa...@gmail.com wrote:
> Hi all,
>
> I'm trying to create a client with keep-alive enabled but when I do
> the request the app blocks. Here the code snippet (IdHTTP is a
> TIdHTTPClient*):
>
> ...
> IdHTTP -> ProtocolVersion << pv1_1;
> IdHTTP -> Request -> Connection = "keep-alive";
> IdHTTP -> Request -> ProxyConnection = "keep-alive";
> IdHTTP -> Response -> KeepAlive = true;
> AnsiString response = IdHTTP -> Get("http://localhost:81"); //
> it blocks here
> ...
>
> I've already tried with Post and with DoRequest. Both blocks too.
>
> What am I doing wrong?
>
> Thanks in advance!
Technical Details
Message-ID:
<1178309642.000213.289230@n76g2000hsh.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!n76g2000hsh.googlegroups.com!not-for-mailReferences:
<1178218514.079295.14020@q75g2000hsh.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,cb0a8671aaf0de86 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!n76g2000hsh.googlegroups.com!not-for-mail From: emerson.pardo@gmail.com Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: TIdHTTPClient read blocking when keep-alive is enabled Date: 4 May 2007 13:14:02 -0700 Organization: http://groups.google.com Lines: 27 Message-ID: <1178309642.000213.289230@n76g2000hsh.googlegroups.com> References: <1178218514.079295.14020@q75g2000hsh.googlegroups.com> NNTP-Posting-Host: 201.20.201.226 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1178309642 27551 127.0.0.1 (4 May 2007 20:14:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 4 May 2007 20:14:02 +0000 (UTC) In-Reply-To: <1178218514.079295.14020@q75g2000hsh.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: n76g2000hsh.googlegroups.com; posting-host=201.20.201.226; posting-account=QvXz7Q0AAABpEoGXcn0fFVJYSsupcqGQ