Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite server implementations with GModule #182

Merged
merged 15 commits into from Jun 6, 2016

Commits on Jun 4, 2016

  1. Copy the full SHA
    614462e View commit details
    Browse the repository at this point in the history
  2. vsgi: Rewrite implementations using GModule

    Extract common CGI and mock code back into VSGI to avoid dependency
    between implementations. The CGI base is versioned for the '0.3' major.
    
    Examples do not work yet because we need to set 'rpath' correctly.
    
    Merge FastCGI and SCGI tests in CGI tests because implementations can
    only be tested from outside.
    arteymix committed Jun 4, 2016
    Copy the full SHA
    fd2780b View commit details
    Browse the repository at this point in the history
  3. vsgi: Move implementations in 'src/vsgi/servers'

    This is necessary since they must be loadable from a single location in
    the build directory. This should be ensured by '-rpath' linker option.
    In the meantime, 'LD_LIBRARY_PATH' can be exported:
    
        LD_LIBRARY_PATH=src/vsgi/servers examples/app/app
    
    Remove pkg-config and deps files.
    arteymix committed Jun 4, 2016
    Copy the full SHA
    d7233e1 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    320befb View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    64ba2ae View commit details
    Browse the repository at this point in the history
  6. vsgi: Add '-rpath' to the linker include 'src/vsgi/servers' in the se…

    …arch path
    
    Examples work and subprojects should work as well.
    arteymix committed Jun 4, 2016
    Copy the full SHA
    6f76345 View commit details
    Browse the repository at this point in the history
  7. vsgi: Use a 'GLib.HashTable' to load multiple servers with 'Server.@new'

    This allow one to obtain multiple instances of different server
    implementations.
    
    Fix the FastCGI server tests since it calls 'Server.@new' twice with the
    same implementation.
    arteymix committed Jun 4, 2016
    Copy the full SHA
    140bb18 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    b8282d6 View commit details
    Browse the repository at this point in the history
  9. vsgi: Set '-rpath' relative to '$ORIGIN' now and after installation

    Using '$ORIGIN' makes it possible to refer to relative directory for
    searching server implementations.
    
    After the installation, the '-rpath' is set to '$ORIGIN/vsgi/servers' so
    that it reflects the system-wide folder.
    arteymix committed Jun 4, 2016
    Copy the full SHA
    c48932b View commit details
    Browse the repository at this point in the history
  10. vsgi: Use 'Server.@new' as a more generic factory

    Replace previous usages with 'Server.new_with_application' which
    initialize the instance with an initial application callback.
    arteymix committed Jun 4, 2016
    Copy the full SHA
    c15dbb2 View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    2d9bcd2 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2016

  1. Copy the full SHA
    8554ee0 View commit details
    Browse the repository at this point in the history
  2. vsgi: Add tests to cover 'Server.new'

    Ensure that basic implementations exist and can be successfully loaded.
    arteymix committed Jun 5, 2016
    Copy the full SHA
    255275a View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2016

  1. Copy the full SHA
    2d124e7 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    174918d View commit details
    Browse the repository at this point in the history