xftp-web: fixes and multi-server upload#1714
Open
shumvgolove wants to merge 6 commits intoep/xftp-webfrom
Open
xftp-web: fixes and multi-server upload#1714shumvgolove wants to merge 6 commits intoep/xftp-webfrom
shumvgolove wants to merge 6 commits intoep/xftp-webfrom
Conversation
0db74db to
e099fa3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
xftp-web fixes
fix: await sodium.ready in crypto/keys.ts (+ digest.ts StateAddress cast) (
c89ce1fb)Add
await sodium.readyincrypto/keys.ts. Castcrypto_hash_sha512_init()return toStateAddressindigest.ts.multi-server parallel upload, remove pickRandomServer (
21e32924)Change
uploadFileto acceptservers[]instead of single server. Chunks randomly assigned to servers, uploaded in parallel. RemovepickRandomServerfromweb/servers.ts.fix worker message race: wait for ready signal before posting messages (
f408a701)Fix production build hang: Vite adds top-level
await import(...)in worker bundle, delayingself.onmessageassignment. Worker now posts{type: 'ready'}after init; backend awaits it before sending.suppress vite build warnings: emptyOutDir, externals, chunkSizeWarningLimit (
4956d143)Add
emptyOutDir: true, explicitexternal: ['node:http2', 'url']for main and worker builds, raisechunkSizeWarningLimitto 1200 for libsodium WASM.fix Haskell web tests: use agent+server API, wrap server in array, suppress debug logs (
38ef4e9b)Update XFTPWebTests.hs to use
newXFTPAgent/closeXFTPAgentand(agent, server)signatures. Wrap single server in array foruploadFile. Redirectconsole.logto/dev/nullincallNode.remove dead APIs: un-export connectXFTP, delete closeXFTP (
0db74db1)Make
connectXFTPprivate (used internally by agent). Remove unusedcloseXFTP.