support upload data in buffering with total buffer size

Bug #1605179 reported by Gary.Wang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Committed
Medium
Unassigned
net-cpp
In Progress
Undecided
Gary.Wang

Bug Description

Currently, net-cpp supports upload data via a chunk or istream via POST and PUT method. And it will stop the current transfer when EOF reached.
The scenario is if we know total upload size up-front, the uploaded content is buffer streaming which we read from socket/local file descriptor. With the current implementation of net-cpp, we have to cache all buffer into a temporary file, then upload that file through istream in POST or PUT method.
In some cases, especially for large file uploading, it's quite inefficient.

Related branches

Gary.Wang (gary-wzl77)
Changed in net-cpp:
assignee: nobody → Gary.Wang (gary-wzl77)
status: New → In Progress
Changed in canonical-devices-system-image:
milestone: none → 14
status: New → In Progress
importance: Undecided → Medium
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
milestone: 14 → backlog
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.