Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

May 31, 2012

  1. Andrea Campi

    Merge pull request #2 from noahwilliamsson/master

    Handle integer replies, implement a connect timeout and dynamic config in VCL
  2. Fix typo in examples/example.vcl (redis.call -> redis.send)

    Signed-off-by: Noah Williamsson <noah.williamsson@gmail.com>
  3. Provide a commented out example of redis.init_redis() in examples/exa…

    …mple.vcl
    
    Signed-off-by: Noah Williamsson <noah.williamsson@gmail.com>
  4. Allow the Redis server and timeout to be set in VCL via redis.init_re…

    …dis()
    
    By default libvmod-redis attempts to connect to the Redis server
    at 127.0.0.1, port 6379 with a connect timeout of 200 ms.
    
    This patch allows the Redis hostname, port and timeout to be configured
    via VCL using redis.init_redis(hostname, port, timeout_ms);
    
    VCL example:
      import redis;
      sub vcl_init {
        redis.init_redis("localhost", 6379, 200);
      }
    
    Signed-off-by: Noah Williamsson <noah.williamsson@gmail.com>
  5. Implement a connect timeout for connecting to Redis, defaulting to 200ms

    Use redisConnectWithTimeout() instead of redisConnect() to prevent
    hanging for minutes when the host is down (i.e, not responding).
    
    The default timeout is set to 200ms via REDIS_TIMEOUT_MS in vmod_redis.c.
    
    Signed-off-by: Noah Williamsson <noah.williamsson@gmail.com>
  6. Initialize config (host, port) once per VCL instead of once every call

    Because the VCC specifies PRIV_CALL for vmod_send() and vmod_call(), the
    vmod_priv argument is NULL for every call to these functions. This causes
    the config struct to be re-allocated for every call.
    
    This patch changes PRIV_CALL to PRIV_VCL, making the vmod_priv argument shared
    between all calls to the module's functions within a given instance of a VCL.
    
    The allocation of the config struct is also moved from redis_common() to
    init_function().
    
    Signed-off-by: Noah Williamsson <noah.williamsson@gmail.com>
  7. Handle REDIS_REPLY_INTEGER in vmod_call() and return it as a string

    Signed-off-by: Noah Williamsson <noah.williamsson@gmail.com>

Dec 07, 2011

  1. Andrea Campi

    Cleanup: make sure we return from functions just once.

    authored June 06, 2011
  2. Andrea Campi

    D'oh, fix VCL syntax in an example.

    authored June 09, 2011
  3. Andrea Campi

    Cleanup: check that the reply is NULL before looking for errors.

    This may not be strictly needed, but it's the documented API.
    authored December 07, 2011
  4. Andrea Campi

    Merge pull request #1 from Luit-IT/master

    Fix to make vmod_redis reconnect when redis-server has closed the connection, making hiredis fail with REDIS_ERR_EOF. 
    
    This makes libvmod-redis much more useful
    authored December 07, 2011

Dec 05, 2011

  1. Luit van Drongelen

    Made redis_common() gracefully recover from disconnect

    Fix to make vmod_redis reconnect when redis-server has closed the
    connection, making hiredis fail with REDIS_ERR_EOF. Connecting is tried
    once and the current command re-issued once per call of redis_common().
    authored December 05, 2011

Jun 06, 2011

  1. Andrea Campi

    More housekeeping: use *_LIBADD instead of LDFLAGS.

    authored June 06, 2011
  2. Andrea Campi

    Give libtool hints about this library is dl-opened at runtime like a …

    …module.
    authored June 06, 2011
  3. Andrea Campi

    Respect the LDFLAGS from the command line (if any).

    authored June 06, 2011
  4. Andrea Campi

    Fix a few leftovers from vmod-example.

    authored June 06, 2011

May 26, 2011

  1. Andrea Campi

    Edited README.md via GitHub

May 25, 2011

  1. Andrea Campi

    Documentation update.

  2. Andrea Campi

    Fix the license.

  3. Andrea Campi

    Add an example showing how to implement session affinity.

  4. Andrea Campi

    Add a trivial example showing off the vmod API.

  5. Andrea Campi

    Cleanup: use macros to wrap logging to make it easier to swap them

    out for something better.
  6. Andrea Campi

    Refactor: move common code to a static function, implement both a

    VCL function and a procedure so we don't have to resort to nasty
    tricks.
  7. Andrea Campi

    Proof of concept vmod for Redis.

May 20, 2011

  1. Per Buer

    Add licence information

    authored May 20, 2011

May 04, 2011

  1. Kristian Lyngstøl

    Make autogen.sh executable

Feb 10, 2011

  1. Martin Blix Grydeland

    Fix new filename reference

    authored February 10, 2011
  2. Martin Blix Grydeland

    More file renames

    authored February 10, 2011
  3. Martin Blix Grydeland

    Some file renames

    authored February 10, 2011
  4. Martin Blix Grydeland

    Use pkg-config to discover vmoddir

    authored February 10, 2011
  5. Martin Blix Grydeland

    Updated README

    authored February 10, 2011
  6. Martin Blix Grydeland

    Allow relative paths in VARNISHSRC

    authored February 10, 2011
  7. Martin Blix Grydeland

    Fixed typo

    authored February 10, 2011

Feb 09, 2011

  1. Martin Blix Grydeland

    Add a placeholder file to m4

    authored February 09, 2011
  2. Martin Blix Grydeland

    Out-of-tree vmod skeleton

    authored February 09, 2011
Something went wrong with that request. Please try again.