CLOUD: Rewrite NetworkReadStream
Now it is based on MemoryReadWriteStream, which is introduced by this commit. This stream is using ring buffer and is dynamically increasing its size when necessary.
This commit is contained in:
parent
01abba4f1d
commit
9c22b7cc64
10 changed files with 119 additions and 46 deletions
|
@ -23,7 +23,7 @@
|
|||
#define FORBIDDEN_SYMBOL_ALLOW_ALL
|
||||
|
||||
#include "backends/cloud/dropbox/curlrequest.h"
|
||||
#include "backends/cloud/curl/networkreadstream.h"
|
||||
#include "backends/networking/curl/networkreadstream.h"
|
||||
#include "common/debug.h"
|
||||
#include <curl/curl.h>
|
||||
|
||||
|
@ -38,7 +38,7 @@ CurlRequest::~CurlRequest() {
|
|||
if (_stream) delete _stream;
|
||||
}
|
||||
|
||||
bool CurlRequest::handle(ConnectionManager& manager) {
|
||||
bool CurlRequest::handle(Networking::ConnectionManager &manager) {
|
||||
if (_firstTime) {
|
||||
_stream = manager.makeRequest(_url);
|
||||
_firstTime = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue