Permalink
Commits on Oct 26, 2011
  1. limit the size of the eventmachine threadpool to 3.

    Larger threadpool than that can cause connection problems with
    the standard ActiveRecord Connection pool.
    rweald committed Oct 26, 2011
Commits on Oct 24, 2011
  1. raise a custom gnip authentication error if headers can not be parsed.

    This will give better feedback because teh external developer will know
    what the error means. Previously you would just get the exception that
    acutally caused the problem which was sometimes really vague like no
    method first for nil class. Now you get a GNIP authentication failed
    error with details of what the exact error was
    rweald committed Oct 24, 2011
  2. only store the block passed to consume if a block is given.

    This allows you to make successive calls to consume without having to
    pass in a new block. This is very handy for error handling where we want
    to attempt to reconnect without having to pass in another block to
    consume
    rweald committed Oct 24, 2011
  3. change the timeout to 2**26 instead of 2**32.

    It appears that 2**32 was causing some kind of eventmachine kernel panic
    deep in the c core.
    rweald committed Oct 24, 2011
  4. set the connection timeout to largest 32 bit int.

    It appears that GNIP is doing something weird with their response and
    em-http-request does not think it has received a response.
    rweald committed Oct 24, 2011
  5. set inactivity timeout to the largest 32bit int.

    This should make sure that the connection doesn't close due to
    inactivity.
    rweald committed Oct 24, 2011
Commits on Oct 21, 2011
  1. Revert "limit the size of the EM threadpool."

    This reverts commit 85adced.
    rweald committed Oct 21, 2011
  2. limit the size of the EM threadpool.

    The default is 20 which is usually good but it can cause to much traffic
    to our database which can cause problems if you db connection pool is
    smaller than the threadpool. 5 is the default size for rails so this
    should help.
    rweald committed Oct 21, 2011
  3. remove yajl as a dependency as I am not actually using it.

    I decided to simply let the user handle the json parsing so that
    they can choose their own client.
    rweald committed Oct 21, 2011
  4. fix the em-http-request timeout.

    They changed the format in version 1.0 so the gnip stream was timing out
    because we have long periods of inactivity.
    rweald committed Oct 21, 2011
Commits on Oct 20, 2011
Commits on Oct 19, 2011
  1. automatically require gnip-stream.rb when opening pry session.

    This makes manual testing and playing easier.
    rweald committed Oct 19, 2011
  2. use ErrorReconnect objects to handle errors in our client classes.

    This delegation means these classes don't have to deal with reconnect
    logic
    rweald committed Oct 19, 2011
  3. move error message declaration onto attempt_to_reconnect.

    This lets you customize the error message based on the parameters
    that would be returned by whatever caused the error.
    For instance the error message returned from our http client.
    rweald committed Oct 19, 2011
  4. add ErrorReconnect class that will handle the reconnect logic

    This keep a nice single responsibility because this class just handles
    reconnects and the client classes can delegate that responsibility to
    these classes
    rweald committed Oct 19, 2011
  5. Tweak REAME.

    Mostly just to trigger another travis-ci build because of some annoying bug in travis ci
    rweald committed Oct 19, 2011
  6. specify all arguments to the expectation block.

    This should fix a compatibility bug with ruby 1.8.7
    rweald committed Oct 19, 2011
  7. make sure eventmachine stops when stubbing request.

    Also fix the format of the headers in the specs so it matches
    the new format returned from em-http-request 1.0
    rweald committed Oct 19, 2011
  8. Add Travic-CI badge to README

    rweald committed Oct 19, 2011
  9. add sharethrough as contributor

    rweald committed Oct 19, 2011
  10. Add links to README

    rweald committed Oct 19, 2011
  11. add license info to the README

    rweald committed Oct 19, 2011
  12. Add License file.

    rweald committed Oct 19, 2011
  13. Revert "pass only the error to the error block."

    This reverts commit 69a11d0.
    rweald committed Oct 19, 2011
  14. control the eventmachine loop as part of library.

    Before it was assumed that the user would start and stop the loop.
    However this breaks some of the abstractions because then the user needs
    to know too much about the lifecycle and how the client uses
    eventmachine.
    rweald committed Oct 19, 2011
  15. fix a typo.

    There is no url on PowertrackAuthentication it is location.
    Rspec-Fire might have been quite handy here.
    rweald committed Oct 19, 2011