mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-11 04:46:07 -08:00
fix(hachidori): finish character dictionary imports without keep-alive w
- Close lingering sockets on the one-shot dictionary ZIP server so imports report completion as soon as the archive is read - Run test:dictionary:electron in the Linux CI E2E job - Note that annotations and lookups pause during Hachidori imports - Keep only dictionaryBackend in the Dictionary Lookup settings section - Move the requestHachidoriSharing import below the license header
This commit is contained in:
7 files changed
+12
-4
No files matched your search
@@ -872,6 +872,9 @@ async function serveDictionaryZipOnce<T>(
|
||||
}
|
||||
return await callback(`http://127.0.0.1:${address.port}${requestPath}`);
|
||||
} finally {
|
||||
// The extension's fetch keeps its socket open; close() alone would wait out
|
||||
// Node's keep-alive timeout before the import reports completion.
|
||||
server.closeAllConnections();
|
||||
await new Promise<void>((resolve) => server.close(() => resolve()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user