From 6fbba1ec0be5ce9ecd74fa2ba1961a6093d71b06 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Fri, 17 Jul 2020 14:56:16 -0700 Subject: [PATCH] 1. Update SHA384FileHash to support non binaries on Windows 2. Updated deflate settings --- meshcore/agentcore.c | 10 +++++----- microscript/ILibDuktape_HttpStream.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/meshcore/agentcore.c b/meshcore/agentcore.c index 34c0edd..6b6ac4a 100644 --- a/meshcore/agentcore.c +++ b/meshcore/agentcore.c @@ -2338,11 +2338,11 @@ int GenerateSHA384FileHash(char *filePath, char *fileHash) } } } - } - if (retVal != 0) - { - fclose(tmpFile); - return(1); + if (retVal != 0) + { + fclose(tmpFile); + return(1); + } } #endif diff --git a/microscript/ILibDuktape_HttpStream.c b/microscript/ILibDuktape_HttpStream.c index ac837fe..9a538eb 100644 --- a/microscript/ILibDuktape_HttpStream.c +++ b/microscript/ILibDuktape_HttpStream.c @@ -4683,7 +4683,7 @@ duk_ret_t ILibDuktape_httpStream_webSocketStream_new(duk_context *ctx) if (narg > 1 && duk_is_object(ctx, 1)) { state->permessageDeflate = Duktape_GetIntPropertyValue(ctx, 1, "perMessageDeflate", 0); - state->minimumThreshold = Duktape_GetIntPropertyValue(ctx, 1, "minimumThreshold", 256); + state->minimumThreshold = Duktape_GetIntPropertyValue(ctx, 1, "minimumThreshold", 64); state->maxSkipCount = Duktape_GetIntPropertyValue(ctx, 1, "maxSkipCount", 128); state->minSkipCount = Duktape_GetIntPropertyValue(ctx, 1, "minSkipCount", 10); state->skipCount = 0;