Article View: borland.public.cppbuilder.internet.socket
Article #1084TIdHTTPClient read blocking when keep-alive is enabled
From: emerson.pardo
Date: Thu, 03 May 2007 18:55
Date: Thu, 03 May 2007 18:55
20 lines
1703 bytes
1703 bytes
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:
<1178218514.079295.14020@q75g2000hsh.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,cb0a8671aaf0de86,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mail From: emerson.pardo@gmail.com Newsgroups: borland.public.cppbuilder.internet.socket Subject: TIdHTTPClient read blocking when keep-alive is enabled Date: 3 May 2007 11:55:14 -0700 Organization: http://groups.google.com Lines: 21 Message-ID: <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 1178218514 16246 127.0.0.1 (3 May 2007 18:55:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 3 May 2007 18:55:14 +0000 (UTC) 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: q75g2000hsh.googlegroups.com; posting-host=201.20.201.226; posting-account=QvXz7Q0AAABpEoGXcn0fFVJYSsupcqGQ