Permalink
Switch branches/tags
Commits on Jan 9, 2014
  1. Return modified State from close_if_idle.

    technomancy committed Jan 9, 2014
    Also multiply ms instead of dividing us in order to avoid floats.
    
    Same as 15366ff, but for HTTP drains.
Commits on Jan 7, 2014
Commits on Jan 6, 2014
Commits on Dec 23, 2013
Commits on Dec 21, 2013
Commits on Dec 20, 2013
  1. Have a single timer for TCP drains that checks last_good_time.

    technomancy committed Dec 20, 2013
    As per Fred's suggestion, this is a lot simpler than resetting the
    timer every time you buffer a new message since it doesn't require
    re-cancelling timers over and over in a non-idle buffer.
Commits on Dec 19, 2013
  1. Attempt to read from idled socket in test.

    technomancy committed Dec 19, 2013
    This is better than checking the process state, which was the
    workaround we were using for the fact that port_info refused to
    consider the socket closed.
Commits on Dec 18, 2013
Commits on Dec 17, 2013
  1. Test against drain's internal state rather than checking for closed s…

    technomancy committed Dec 17, 2013
    …ocket.
    
    For some extremely mysterious reason, closing one side of this socket
    refuses to close the other in the tests, though manual tests with
    netcat confirm that it's in fact being closed.
  2. Re-cache OS env-vars in TCP drain tests.

    technomancy committed Dec 17, 2013
    Otherwise we get stuck with the default idle timeout.
  3. Add test for tcp drain closing.

    technomancy committed Dec 17, 2013
    Test is currently failing even though according to the logs the socket
    is being closed at the right spot.
Commits on Dec 16, 2013
Commits on Dec 14, 2013
  1. Add disconnecting state for when we hit the idle timeout in the sendi…

    technomancy committed Dec 14, 2013
    …ng state.
    
    The disconnecting state is similar to sending, but unless a post is
    received it will end up in the disconnected state. I've collapsed the
    two inet_reply clauses into a single one that only logs when there's
    an error.
Commits on Dec 13, 2013
Commits on Dec 10, 2013
  1. Merge pull request #67 from heroku/redis_buffer_shard_key

    omarkj committed Dec 10, 2013
    Redis buffer shard key
Commits on Dec 4, 2013
  1. Upgrade script for both up- and downgrades from-

    omarkj committed Dec 4, 2013
    and to v69.12.
  2. Add rollback code change.

    omarkj committed Dec 4, 2013