Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org 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)
#ifdef ONE_JS_RUNTIME
JSRuntime* js_runtime;
#endif
#ifdef SO_ACCEPTFILTER
struct accept_filter_arg afa;
#endif
startup=(web_startup_t*)arg;
web_ver(); /* get CVS revision */
......@@ -4553,6 +4557,12 @@ void DLLCALL web_server(void* arg)
* lprintf("Cannot set TCP_NOPUSH socket option");
*/
#ifdef SO_ACCEPTFILTER
memset(&afa, 0, sizeof(afa));
strcpy(afa.af_name, "httpready");
setsockopt(server_socket, SOL_SOCKET, SO_ACCEPTFILTER, &afa, sizeof(afa));
#endif
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