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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user