Revert "Merge pull request #25 from jpirnay/fix-pr1582" and refactor koreader

This commit is contained in:
jpirnay
2026-04-07 20:24:51 +02:00
parent fb331ae122
commit abbf69649e
17 changed files with 516 additions and 268 deletions
+13 -1
View File
@@ -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;
};