Merge branch 'master' of https://github.com/sogou/workflow into nossl

This commit is contained in:
Xie Han
2024-03-05 21:11:41 +08:00
18 changed files with 613 additions and 97 deletions

View File

@@ -32,6 +32,7 @@ else ()
endif ()
set(TUTORIAL_LIST
dns_proxy
tutorial-00-helloworld
tutorial-01-wget
tutorial-04-http_echo_server

View File

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