1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-14 07:13: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

@@ -3682,6 +3682,7 @@ void MeshServer_OnResponse(ILibWebClient_StateObject WebStateObject, int Interru
ILibRemoteLogging_printf(ILibChainGetLogger(ILibWebClient_GetChainFromWebStateObject(WebStateObject)), ILibRemoteLogging_Modules_Agent_GuardPost, ILibRemoteLogging_Flags_VerbosityLevel_1, "Agent Host Container: Mesh Server Connection Error, trying again later.");
printf("Mesh Server Connection Error [%d]\n", ILibWebClient_GetDescriptorValue_FromStateObject(WebStateObject));
agent->autoproxy_status = 0;
if (agent->logUpdate != 0)
{
sprintf_s(ILibScratchPad, sizeof(ILibScratchPad), "Connection Error [%p, %d, [%d]]...\n", WebStateObject, InterruptFlag, ILibWebClient_GetDescriptorValue_FromStateObject(WebStateObject));

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;
}