Skip to content

Merge latest changes from donald/mxshadow #1

Merged
merged 21 commits into from
May 18, 2021
Merged

Merge latest changes from donald/mxshadow #1

merged 21 commits into from
May 18, 2021

Commits on May 17, 2021

  1. 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.
    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    15e16a9 View commit details
    Browse the repository at this point in the history
  2. 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.
    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    9cdc60d View commit details
    Browse the repository at this point in the history
  3. mxshadowsrv: Protect shadow buffer with a mutex

    Use mutex to protect shadow_buf and statbuf.
    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    1925314 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    37ce5b3 View commit details
    Browse the repository at this point in the history
  5. 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.
    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    19ed6a6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e28a615 View commit details
    Browse the repository at this point in the history
  7. 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.
    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    c96a5f5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6c4cc10 View commit details
    Browse the repository at this point in the history
  9. common.h: Add include guard

    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    bf6e3d9 View commit details
    Browse the repository at this point in the history
  10. common.h, get_shadow_line: Always set errno on failures

    Always return some more or less sensible value in errno for failing
    functions.
    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    ab9d3ac View commit details
    Browse the repository at this point in the history
  11. 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.
    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    85cb22a View commit details
    Browse the repository at this point in the history
  12. 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.
    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    8c2723e View commit details
    Browse the repository at this point in the history
  13. Makefile: Remove get_shadow_line.o

    We include get_shadow_line.c, we don't link against it. Remove uneeded
    target.
    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    831d5ae View commit details
    Browse the repository at this point in the history
  14. Remove get_shadow_line.h

    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    5b7dfdb View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    07ac446 View commit details
    Browse the repository at this point in the history
  16. Makefile: Fix typo

    donald committed May 17, 2021
    Configuration menu
    Copy the full SHA
    c00277c View commit details
    Browse the repository at this point in the history

Commits on May 18, 2021

  1. Configuration menu
    Copy the full SHA
    425c9d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e9c974 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b0bb864 View commit details
    Browse the repository at this point in the history
  4. test-wtf.sh: Remove

    Remove obsolete test script.
    donald committed May 18, 2021
    Configuration menu
    Copy the full SHA
    664fa17 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5 from donald/0.3

    0.3
    donald authored May 18, 2021
    Configuration menu
    Copy the full SHA
    854dea9 View commit details
    Browse the repository at this point in the history