1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-14 23:33:38 +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,12 +2338,12 @@ int GenerateSHA384FileHash(char *filePath, char *fileHash)
} }
} }
} }
}
if (retVal != 0) if (retVal != 0)
{ {
fclose(tmpFile); fclose(tmpFile);
return(1); return(1);
} }
}
#endif #endif
if (endIndex == 0) if (endIndex == 0)

View File

@@ -4683,7 +4683,7 @@ duk_ret_t ILibDuktape_httpStream_webSocketStream_new(duk_context *ctx)
if (narg > 1 && duk_is_object(ctx, 1)) if (narg > 1 && duk_is_object(ctx, 1))
{ {
state->permessageDeflate = Duktape_GetIntPropertyValue(ctx, 1, "perMessageDeflate", 0); 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->maxSkipCount = Duktape_GetIntPropertyValue(ctx, 1, "maxSkipCount", 128);
state->minSkipCount = Duktape_GetIntPropertyValue(ctx, 1, "minSkipCount", 10); state->minSkipCount = Duktape_GetIntPropertyValue(ctx, 1, "minSkipCount", 10);
state->skipCount = 0; state->skipCount = 0;