Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #573

Re: Program hanging on recv()

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news.netfront.net!gonzo.reversiblemaps.ath.cx!not-for-mail
From Jasen Betts <jasen@xnet.co.nz>
Newsgroups comp.os.linux.development.apps
Subject Re: Program hanging on recv()
Date 4 Feb 2013 11:10:52 GMT
Organization Dis (not Dat) Organisation
Lines 27
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>
NNTP-Posting-Host 118.90.39.127
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace adenine.netfront.net 1359977154 55250 118.90.39.127 (4 Feb 2013 11:25:54 GMT)
X-Complaints-To news@netfront.net
NNTP-Posting-Date Mon, 4 Feb 2013 11:25:54 +0000 (UTC)
X-Face ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s;a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W;(T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q;8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^
User-Agent slrn/pre1.0.0-18 (Linux)
Xref csiph.com comp.os.linux.development.apps:573

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar


Thread

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