Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 3dc291a1 authored by deuce's avatar deuce

Support FreeBSDs accf_http(9) kerm option/module designed specifically for

HTTP server optimizations.
parent f6150d98
......@@ -4387,6 +4387,10 @@ void DLLCALL web_server(void* arg)
JSRuntime* js_runtime;
struct accept_filter_arg afa;
web_ver(); /* get CVS revision */
......@@ -4553,6 +4557,12 @@ void DLLCALL web_server(void* arg)
* lprintf("Cannot set TCP_NOPUSH socket option");
memset(&afa, 0, sizeof(afa));
strcpy(afa.af_name, "httpready");
setsockopt(server_socket, SOL_SOCKET, SO_ACCEPTFILTER, &afa, sizeof(afa));
lprintf(LOG_INFO,"%04d Web Server socket opened",server_socket);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment