mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Merge branch 'master' of https://github.com/sogou/workflow into nossl
This commit is contained in:
@@ -32,6 +32,7 @@ else ()
|
||||
endif ()
|
||||
|
||||
set(TUTORIAL_LIST
|
||||
dns_proxy
|
||||
tutorial-00-helloworld
|
||||
tutorial-01-wget
|
||||
tutorial-04-http_echo_server
|
||||
|
||||
@@ -149,6 +149,12 @@ int main(int argc, char *argv[])
|
||||
port = atoi(argv[1]);
|
||||
signal(SIGINT, sig_handler);
|
||||
|
||||
struct WFGlobalSettings settings = GLOBAL_SETTINGS_DEFAULT;
|
||||
settings.resolv_conf_path = "./resolv.conf";
|
||||
settings.dns_ttl_default = 5;
|
||||
settings.dns_ttl_min = 1;
|
||||
WORKFLOW_library_init(&settings);
|
||||
|
||||
struct WFServerParams params = HTTP_SERVER_PARAMS_DEFAULT;
|
||||
/* for safety, limit request size to 8MB. */
|
||||
params.request_size_limit = 8 * 1024 * 1024;
|
||||
|
||||
Reference in New Issue
Block a user