-
Notifications
You must be signed in to change notification settings - Fork 0
Merge latest changes from donald/mxshadow #1
Commits on May 17, 2021
-
mxshadowsrv: Refactor some automatics into statics
Make some automatic variables, which will be needed by other threads, into statics. This avoids uneeded data structures to communicate this data into threads. SSL_CTX is reference counted and thread safe (if not modified). Keep a copy in an automatic variable to lose our reference via free_ssl_ctx()->SSL_CTX_free.
Configuration menu - View commit details
-
Copy full SHA for 15e16a9 - Browse repository at this point
Copy the full SHA 15e16a9View commit details -
mxshadowsrv: Factor out processing of a single client
We want to process each client in a individual thread. This requires a separate function per client. Factor that out.
Configuration menu - View commit details
-
Copy full SHA for 9cdc60d - Browse repository at this point
Copy the full SHA 9cdc60dView commit details -
mxshadowsrv: Protect shadow buffer with a mutex
Use mutex to protect shadow_buf and statbuf.
Configuration menu - View commit details
-
Copy full SHA for 1925314 - Browse repository at this point
Copy the full SHA 1925314View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37ce5b3 - Browse repository at this point
Copy the full SHA 37ce5b3View commit details -
mxshadowsrv: Increase timeout from 1 to 30 seconds
As clients are handled in individual threads now, individual client or communication problems can no longer spoil the game for other clients, so relace the timeout for client responses.
Configuration menu - View commit details
-
Copy full SHA for 19ed6a6 - Browse repository at this point
Copy the full SHA 19ed6a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e28a615 - Browse repository at this point
Copy the full SHA e28a615View commit details -
get_shadow_line: Increase timeout from 1 to 5 seconds
Increase timeout so we have a better chance to get through short network problems or server overload conditions.
Configuration menu - View commit details
-
Copy full SHA for c96a5f5 - Browse repository at this point
Copy the full SHA c96a5f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c4cc10 - Browse repository at this point
Copy the full SHA 6c4cc10View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf6e3d9 - Browse repository at this point
Copy the full SHA bf6e3d9View commit details -
common.h, get_shadow_line: Always set errno on failures
Always return some more or less sensible value in errno for failing functions.
Configuration menu - View commit details
-
Copy full SHA for ab9d3ac - Browse repository at this point
Copy the full SHA ab9d3acView commit details -
libnss_mxshadow: Include get_shadow_line.c from source
We want libnss_mxshadow.c and get_shadow_line.c in a single compilation unit, so that the preprocessor macros are in the same namespace. Include get_shadow_line.c from source not from the command line.
Configuration menu - View commit details
-
Copy full SHA for 85cb22a - Browse repository at this point
Copy the full SHA 85cb22aView commit details -
libnss_mxshadow: Log to syslog
Do not assume that stderr is available for logging, because the calling application might reuse fd2 for antohter purpose (at least in theorie). Redirect diagnostincs to syslog.
Configuration menu - View commit details
-
Copy full SHA for 8c2723e - Browse repository at this point
Copy the full SHA 8c2723eView commit details -
Makefile: Remove get_shadow_line.o
We include get_shadow_line.c, we don't link against it. Remove uneeded target.
Configuration menu - View commit details
-
Copy full SHA for 831d5ae - Browse repository at this point
Copy the full SHA 831d5aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b7dfdb - Browse repository at this point
Copy the full SHA 5b7dfdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07ac446 - Browse repository at this point
Copy the full SHA 07ac446View commit details -
Configuration menu - View commit details
-
Copy full SHA for c00277c - Browse repository at this point
Copy the full SHA c00277cView commit details
Commits on May 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 425c9d6 - Browse repository at this point
Copy the full SHA 425c9d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e9c974 - Browse repository at this point
Copy the full SHA 4e9c974View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0bb864 - Browse repository at this point
Copy the full SHA b0bb864View commit details -
Configuration menu - View commit details
-
Copy full SHA for 664fa17 - Browse repository at this point
Copy the full SHA 664fa17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 854dea9 - Browse repository at this point
Copy the full SHA 854dea9View commit details