Add ssl_prefer_low_memory_usage option

This commit is contained in:
Alex Hultman 2019-03-10 14:13:06 +01:00
parent ae32259342
commit 74e8476ad4
12 changed files with 82 additions and 58 deletions

View file

@ -265,6 +265,9 @@ void uWS_App(const FunctionCallbackInfo<Value> &args) {
dhParamsFileName.append(dhParamsFileNameValue.getString());
ssl_options.dh_params_file_name = dhParamsFileName.c_str();
}
/* ssl_prefer_low_memory_usage */
ssl_options.ssl_prefer_low_memory_usage = Local<Object>::Cast(args[0])->Get(String::NewFromUtf8(isolate, "ssl_prefer_low_memory_usage"))->BooleanValue();
}
app = new APP(ssl_options);