#4505 NORM Never A: sugar.network: GlibURLDownloader terminates download prematurely

Zarro Boogs per Child bugtracker at laptop.org
Mon Oct 29 13:48:38 EDT 2007


#4505: sugar.network: GlibURLDownloader terminates download prematurely
---------------------------+------------------------------------------------
 Reporter:  smcv           |       Owner:  marco         
     Type:  defect         |      Status:  new           
 Priority:  normal         |   Milestone:  Never Assigned
Component:  sugar          |     Version:                
 Keywords:  collaboration  |    Verified:  0             
---------------------------+------------------------------------------------
 The patches to convert ReadActivity to stream tubes (attached to #4297)
 work with Salut, but not with Gabble. This appears to be because the
 connection manager proxies the TCP connection and changes the message
 boundaries; GlibURLDownloader thus gets a short read (len(data) <
 self.CHUNK_SIZE) and decides that the download has finished.

 TCP streams are bytestreams, not message streams, so should make no
 assumptions about message boundaries. The downloader should instead use
 the Content-Length header, probably.

 I'll probably work around this in #4297 by not using HTTP.

-- 
Ticket URL: <https://dev.laptop.org/ticket/4505>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list