From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!c9g2000yqm.googlegroups.com!not-for-mail From: "Jacob M. H. Smith" Newsgroups: comp.lang.ada Subject: Re: GNAT.Sockets. Blocking? Date: Tue, 23 Jun 2009 21:55:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: <392f68f1-4eb3-473d-ab9a-d3d8ff524ff3@c9g2000yqm.googlegroups.com> References: <158756da-21b7-4e2d-b288-7ba030f1f35c@25g2000yqb.googlegroups.com> NNTP-Posting-Host: 141.31.188.43 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1245819339 32362 127.0.0.1 (24 Jun 2009 04:55:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 24 Jun 2009 04:55:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c9g2000yqm.googlegroups.com; posting-host=141.31.188.43; posting-account=lGLE9AkAAABZOvwB3iPLYCKw3E6P3RUe User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.18 (KHTML, like Gecko) Version/4.0.1 Safari/530.18,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6585 Date: 2009-06-23T21:55:39-07:00 List-Id: On Jun 24, 2:14=A0am, "John B. Matthews" wrote: > The Google page specifies "Transfer-Encoding: chunked", which must be > "terminated by closing the connection." To get the whole page, I think = =A0 > you'd need to handle the chunk-size: > > Thanks for your reply, but I don't think that's correct. It says "the set of transfer-codings MUST include "chunked", unless the message is terminated by closing the connection.". That sounds to me like there is really no problem in having a persistent connection and chunked transfer encoding. > Your code gets www.example.com correctly, without an explicit > "Connection: close": > > I think that's because example.com closes the connection, no matter if you request a persistent connection or not. At least on my end here.