search for: open_timeout

Displaying 9 results from an estimated 9 matches for "open_timeout".

2009 Jul 24
1
Modifying ActiveResource classes
...esource code, I''ve realized that this is because the underlying Net:Http object only has one timeout value set: read_timeout. The Net:Http library defines this as "Seconds to wait until reading one block (by one read(2) call)". The Net:Http lib also defines another timeout value, open_timeout, which is defined as "Seconds to wait until connection is opened". I''m unsure why open_timeout isn''t set by default with the timeout value set on an ActiveResource class, but after modifying the ActiveResource::Connection class to include the open_timeout on the http ob...
2008 Jan 13
6
Graceful way to handle execution expired and bad URI errors?
Hello, I have a program that takes blog urls that our customers enter into their profiles. In some cases they enter bad feeds (IE html pages instead of atom or rss), and it throws these two errors: execution expired and bad URI errors in the view. I need to find a graceful way to handle both. Preferably, if I could find a way to throw an error message for the execution expired
2011 Mar 27
2
LinkedIn still not working?
...tp://bit.ly/e6J38E require ''rubygems'' if VERSION < ''1.9'' require ''open-uri'' require ''nokogiri'' require ''mechanize'' agent = Mechanize.new agent.read_timeout = 300 agent.open_timeout = 60 agent.max_history = 1 # Prevent excessive memory usage agent.user_agent_alias = ''Mac Safari'' page = agent.get(https://www.linkedin.com/secure/login?trk=hb_signin) form = page.form(''login'') form.session_key = USERNAME form.sess...
2009 Jun 15
1
NoMethodError: undefined method `password_reset_instructions' for UserNotifier:Class
...sts/how-to-send-actionmailer-mails-to-gmailcom.html Net::SMTP.class_eval do private def do_start(helodomain, user, secret, authtype) raise IOError, ''SMTP session already started'' if @started check_auth_args user, secret, authtype if user or secret sock = timeout(@open_timeout) { TCPSocket.open(@address, @port) } @socket = Net::InternetMessageIO.new(sock) @socket.read_timeout = 60 #@read_timeout check_response(critical { recv_response() }) do_helo(helodomain) raise ''openssl library not installed'' unless defined?(OpenSSL) startt...
2008 Jul 24
0
Errno::EBADF Send an Email in Rails using GMail
...re "openssl" require "net/smtp" Net::SMTP.class_eval do private def do_start(helodomain, user, secret, authtype) raise IOError, ''SMTP session already started'' if @started check_auth_args user, secret, authtype if user or secret sock = timeout(@open_timeout) { TCPSocket.open(@address, @port) } @socket = Net::InternetMessageIO.new(sock) @socket.read_timeout = 60 #@read_timeout #@socket.debug_output = STDERR #@debug_output check_response(critical { recv_response() }) do_helo(helodomain) if starttls raise ''openssl...
2006 Aug 28
2
sysread': end of file reached (EOFError)
Hi, I am trying to access the gmail account through net/pop library.However, I have an error such that: c:/ruby/lib/ruby/1.8/net/protocol.rb:133:in `sysread'': end of file reached (EOFError) from c:/ruby/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'' from c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'' from c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'' from
2009 Apr 09
1
Mailing error in Rails 2.3.2
...t; @password } Net::SMTP.class_eval do private def do_start(helodomain, user, secret, authtype) raise IOError, ''SMTP session already started'' if @started #check_auth_args user, secret, authtype if user or secret check_auth_args user, authtype if user or secret sock = timeout(@open_timeout) { TCPSocket.open(@address, @port) } @socket = Net::InternetMessageIO.new(sock) @socket.read_timeout = 60 #@read_timeout @socket.debug_output = STDERR #@debug_output check_response(critical { recv_response() }) do_helo(helodomain) raise ''openssl library not installed'' unle...
2007 Jan 31
2
SystemStackError: stack level too deep
I''m testing the http module in console. BUt I got the following error. Anyone knows why? >> Net::HTTP.get_print ''www.google.com'', ''index.html'' SystemStackError: stack level too deep from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in `newobj'' from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
2006 Sep 26
4
Mongrel Processes Dying
We are seeing mongrel processes dying in our mongrel cluster. What is the best way to troubleshoot this? We have ruby 1.8.4, Rails 1.1.0 (upgrading soon), MySql 4.1 running on Red Hat Enterprise Linux ES release 4, Apache 2.2, mongrel-0.3.13.3, mongrel_cluster-0.2.0 I saw the following messages in the mongrel.log but not sure if theay are related to the processes dying. It would be nice if