Skip to content

Commit

Permalink
limit the size of the eventmachine threadpool to 3.
Browse files Browse the repository at this point in the history
Larger threadpool than that can cause connection problems with
the standard ActiveRecord Connection pool.
  • Loading branch information
rweald committed Oct 26, 2011
1 parent 1c93a99 commit dc55785
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/gnip-stream/stream.rb
Expand Up @@ -3,6 +3,8 @@

module GnipStream
class Stream

EventMachine.threadpool_size = 3

attr_accessor :headers, :options, :url, :username, :password

Expand Down

0 comments on commit dc55785

Please sign in to comment.