title: Ruby tweetstream stop unexpectedly
body: <p>I use <code>tweetstream gem</code> to get sample tweets from Twitter Streaming API:</p>
  
  <pre><code>TweetStream.configure do |config|
      config.username = 'my_username'
      config.password = 'my_password'
      config.auth_method = :basic
  end
  
  @client = TweetStream::Client.new
  
  @client.sample do |status|
      puts "#{status.text}"
  end
  </code></pre>
  
  <p>However, this script will stop printing out tweets after about 100 tweets (the script continues to run). What could be the problem?</p>