Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #573
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| Subject | Re: Program hanging on recv() |
| Date | 2013-02-04 11:10 +0000 |
| Organization | Dis (not Dat) Organisation |
| Message-ID | <keo4vs$dvk$3@gonzo.reversiblemaps.ath.cx> (permalink) |
| References | <kem9lq$ir1$1@dont-email.me> <871ucxoz78.fsf@araminta.anjou.terraraq.org.uk> <kemmvd$nd5$3@dont-email.me> |
On 2013-02-03, Ramon <ramif_47.invalid@yahoo.co.uk> wrote: > What I'm actually doing is just downloading an XML page to memory using > the HTTP protocol. (e.g. http://weather.yahooapis.com/forecastrss?w=2502265) HTTP version 1.1 should always indoicate the size, either explicitly or by using chunked transmission. > The actual problem is that I do not know the size of that XML file > beforehand. You're not using libxml2 by any chance? Did you know it contained a http client? > *Question*: Is it possible to know the size of the page to download > beforehand? HTTP1.1 > Or is then any other way how I can solve the recv() hanging issue? EOF should be signalled somehow, I'd cheat and use wireshark to look at what hppens when firefox does the same request. -- ⚂⚃ 100% natural --- news://freenews.netfront.net/ - complaints: news@netfront.net ---
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Next in thread | Find similar
Program hanging on recv() Ramon <ramif_47.invalid@yahoo.co.uk> - 2013-02-03 19:18 +0100
Re: Program hanging on recv() Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-03 21:38 +0000
Re: Program hanging on recv() Ramon <ramif_47.invalid@yahoo.co.uk> - 2013-02-03 23:05 +0100
Re: Program hanging on recv() Lew Pitcher <lpitcher@teksavvy.com> - 2013-02-03 17:50 -0500
Re: Program hanging on recv() Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-03 23:16 +0000
Re: Program hanging on recv() Jasen Betts <jasen@xnet.co.nz> - 2013-02-04 11:10 +0000
Re: Program hanging on recv() Ramon <ramif_47.invalid@yahoo.co.uk> - 2013-02-04 21:21 +0100
Re: Program hanging on recv() Rainer Weikusat <rweikusat@mssgmbh.com> - 2013-02-04 19:43 +0000
csiph-web