Revert "Merge pull request #25 from jpirnay/fix-pr1582" and refactor koreader
This commit is contained in:
@@ -70,6 +70,17 @@ class KOReaderSyncClient {
|
||||
*/
|
||||
static Error updateProgress(const KOReaderProgress& progress);
|
||||
|
||||
/**
|
||||
* Keep HTTP/TLS session alive across multiple sync requests (GET/PUT).
|
||||
* Intended for KOReaderSyncActivity to reduce repeated handshake churn.
|
||||
*/
|
||||
static void beginPersistentSession();
|
||||
|
||||
/**
|
||||
* Close and release any persistent HTTP/TLS session.
|
||||
*/
|
||||
static void endPersistentSession();
|
||||
|
||||
/**
|
||||
* Get human-readable error message (short, for status line).
|
||||
*/
|
||||
@@ -100,5 +111,6 @@ class KOReaderSyncClient {
|
||||
* a request. Below this, the client refuses with NETWORK_ERROR and lastFailureDetail
|
||||
* reports a heap-pressure message instead of attempting (and crashing) the TLS handshake.
|
||||
*/
|
||||
static constexpr unsigned MIN_CONTIG_HEAP_FOR_TLS = 32 * 1024;
|
||||
static constexpr unsigned MIN_CONTIG_HEAP_FOR_TLS = 36 * 1024;
|
||||
static constexpr unsigned MIN_CONTIG_HEAP_FOR_TLS_UPLOAD = 34 * 1024;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user