• The lock used with the condition variable should always be the same one
    guarding changes to the condition itself, in these cases, the lock
    guarding changes to the subscribe and psubscibe data structures.
    
    This commit also limits the number of locks held by the subscribeBase
    function at any one time.
    Collin Hockey authored
     
    Browse File »




  • More intuitive if disconnect() blocks like connect(). Most clients will
    want to use these two methods. For more fine grained control,
    disconnect() is just a combo of stop() and wait().
    Hayk Martirosyan authored
     
    Browse File »
  • Make .free() on commands send a message over an async watcher to the
    event loop, just like adding commands. This gets rid of some very tough
    to find memory bugs. Combined .cancel() with .free(), so there is only
    one method to call, whether for synchronous commands or for looped
    commands.
    
    Also debug some horrible segfaults related to Subscriber. Something is
    odd with hiredis and subscriptions, need to ask them. It seems when we
    flood with commands it doesn't disconnect cleanly. Look for a way to
    wait until all commands are processed.
    Hayk Martirosyan authored
     
    Browse File »