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