1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-06 00:13:33 +00:00

1. Update SHA384FileHash to support non binaries on Windows

2. Updated deflate settings
This commit is contained in:
Bryan Roe
2020-07-17 14:56:16 -07:00
parent 63d979ae97
commit 6fbba1ec0b
2 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

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