1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-11 13:53:37 +00:00

1. Fixed autoproxy retry logic on connect/disconnect

2. Updated Self Update Test, to push native updates in 16k chunks.
This commit is contained in:
Bryan Roe
2022-06-16 11:42:07 -07:00
parent 69751822b0
commit b1dfdfa0bd
2 changed files with 3 additions and 2 deletions

View File

@@ -341,10 +341,10 @@ server.on('upgrade', function (msg, sck, head)
b.writeUInt16BE(1, 2);
this.write(b);
b = Buffer.alloc(4100);
b = Buffer.alloc(16388);
b.writeUInt16BE(MeshCommand_AgentUpdateBlock);
b.writeUInt16BE(1, 2);
agentBinary_BytesSent = require('fs').readSync(agentBinaryFD, b, 4, 4096, -1);
agentBinary_BytesSent = require('fs').readSync(agentBinaryFD, b, 4, 16384, -1);
this.write(b);
break;
}