Skip to content

Instantly share code, notes, and snippets.

@topfunky
Created November 4, 2008 18:29
Show Gist options
  • Select an option

  • Save topfunky/22181 to your computer and use it in GitHub Desktop.

Select an option

Save topfunky/22181 to your computer and use it in GitHub Desktop.
irb> require 'rubygems'; require 'beanstalk-client';
irb> p = Beanstalk::Pool.new(['localhost:11300'])
EOFError: EOFError
irb> p.put "hello"
EOFError: EOFError
EOFError: EOFError
SocketError: getaddrinfo: Name or service not known
Beanstalk::NotConnected: Beanstalk::NotConnected
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/beanstalk-client-1.0.2/lib/beanstalk-client/connection.rb:373:in `pick_connection'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/beanstalk-client-1.0.2/lib/beanstalk-client/connection.rb:364:in `send_to_rand_conn'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/beanstalk-client-1.0.2/lib/beanstalk-client/connection.rb:348:in `retry_wrap'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/beanstalk-client-1.0.2/lib/beanstalk-client/connection.rb:364:in `send_to_rand_conn'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/beanstalk-client-1.0.2/lib/beanstalk-client/connection.rb:257:in `yput'
from (irb):7
from /opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment