Menu

#4 Split files for upload and download

pending
Connection (4)
6
2010-10-01
2010-03-29
ScaryClam
No

httplib2 does not currently support getting or sending data in chunks. A response will all be sent at once, as will a request. As such there is a need for a work around to support this behaviour since WebDAV is for working with files and I'm sure people want to have the facility to send and receive large files without needing large amounts of memory available to hold the file data.

One idea was to use content-range when uploading but this is limited as not all WebDAV servers support the header.

Discussion

  • ScaryClam

    ScaryClam - 2010-09-16

    Have added a file like wrapper object. This will allow for two things:

    1) httplib2 has a bug that does not correctly handle file objects when authorisation is required (it "uses up" the file and does not reset it before making an authorised connection attempt).

    2) It allows a file like object to be sent instead of reading all of the data into memory at once. This could happen before but httplib2 does not handle it properly and httplib will read in chunks of 8192 bytes, not ideal for sending large files. This should be a work around for both issues.

    Since I have not yet fully tested the file wrapper I will leave this ticket open.

     
  • ScaryClam

    ScaryClam - 2010-09-16
    • status: open --> pending
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     
  • ScaryClam

    ScaryClam - 2010-10-01
    • status: closed --> pending
     
  • ScaryClam

    ScaryClam - 2010-10-01

    SF automatically closed ticket when it was not ready to be closed

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.