Timeout Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikado
    New Member
    • Aug 2006
    • 1

    Timeout Error

    Hi,
    I want to access the gmail account through net/pop library and I try this example :
    Class: Net::POP3

    However,I have a timeout error such that:
    Code:
     
    c:/ruby/lib/ruby/1.8/timeout.rb:54:in `rbuf_fill': execution expired 
    (Timeout::E
    rror)
    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 c:/ruby/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'
    from c:/ruby/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
    from c:/ruby/lib/ruby/1.8/net/protocol.rb:126:in `readline'
    from c:/ruby/lib/ruby/1.8/net/pop.rb:852:in `recv_response'
    from c:/ruby/lib/ruby/1.8/net/pop.rb:751:in `initialize'
    from c:/ruby/lib/ruby/1.8/net/pop.rb:868:in `critical'
    from c:/ruby/lib/ruby/1.8/net/pop.rb:751:in `initialize'
    from c:/ruby/lib/ruby/1.8/net/pop.rb:440:in `do_start'
    from c:/ruby/lib/ruby/1.8/net/pop.rb:426:in `start'
    from c:/ruby/lib/ruby/1.8/net/pop.rb:329:in `start'
    The line, the error occurs from is here :
    Net::POP3.start ('pop.gmail.com ', 995,'my_account ', 'my_passwd')
    I couldn't understand what is wrong here. How can I correct this
    problem?
    Thanks...
    Mikado :confused:
  • marcincoles
    New Member
    • Jan 2008
    • 1

    #2
    For all and sundry, the solution to this problem is documented on http://marcincoles.blogspot.com/2007...h-nethttp.html . Basically it seems to only occur on windows, and the fix is to edit the rbuf_fill method in the protocol.rb file.

    Comment

    • deepakm1
      New Member
      • Nov 2008
      • 2

      #3
      Code:
       
      c:/ruby/lib/ruby/1.8/timeout.rb:54:in `rbuf_fill'
      c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
      c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
      c:/ruby/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'
      c:/ruby/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
      c:/ruby/lib/ruby/1.8/net/protocol.rb:126:in `readline'
      c:/ruby/lib/ruby/1.8/net/http.rb:2029:in `read_status_line'
      c:/ruby/lib/ruby/1.8/net/http.rb:2018:in `read_new'
      c:/ruby/lib/ruby/1.8/net/http.rb:1059:in `request'
      C:/ruby/isoTree/app/controllers/application.rb:226:in `get_legacy_session'
      c:/ruby/lib/ruby/1.8/net/http.rb:547:in `start'
      c:/ruby/lib/ruby/1.8/net/http.rb:440:in `start'
      C:/ruby/isoTree/app/controllers/application.rb:224:in `get_legacy_session'
      C:/ruby/isoTree/app/controllers/page_controller.rb:64:in `show'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:1101:in `send'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:1101:in `perform_action_without_filters'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:696:in `call_filters'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:688:in `perform_action_without_benchmark'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
      c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/rescue.rb:83:in `perform_action'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:435:in `send'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:435:in `process_without_filters'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:684:in `process_without_session_management_support'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/session_management.rb:114:in `process'
      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:334:in `process'
      c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/dispatcher.rb:41:in `dispatch'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:76:in `process'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:74:in `synchronize'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:74:in `process'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:159:in `process_client'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in `each'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in `process_client'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `run'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `initialize'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `new'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `run'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `initialize'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `new'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `run'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:282:in `run'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in `each'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in `run'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:128:in `run'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/command.rb:212:in `run'
      c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:281
      c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in `load'
      c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in `load'
      c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'
      c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in `load'
      c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/servers/mongrel.rb:60
      c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
      c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
      c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
      c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'
      c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
      c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/server.rb:39
      c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
      c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
      script/server:3

      Comment

      • deepakm1
        New Member
        • Nov 2008
        • 2

        #4
        Plz give me solution for TimeOut error, execution experied error in ruby on rails
        Code:
         
        c:/ruby/lib/ruby/1.8/timeout.rb:54:in `rbuf_fill'
        c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
        c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
        c:/ruby/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'
        c:/ruby/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
        c:/ruby/lib/ruby/1.8/net/protocol.rb:126:in `readline'
        c:/ruby/lib/ruby/1.8/net/http.rb:2029:in `read_status_line'
        c:/ruby/lib/ruby/1.8/net/http.rb:2018:in `read_new'
        c:/ruby/lib/ruby/1.8/net/http.rb:1059:in `request'
        C:/ruby/isoTree/app/controllers/application.rb:226:in `get_legacy_session'
        c:/ruby/lib/ruby/1.8/net/http.rb:547:in `start'
        c:/ruby/lib/ruby/1.8/net/http.rb:440:in `start'
        C:/ruby/isoTree/app/controllers/application.rb:224:in `get_legacy_session'
        C:/ruby/isoTree/app/controllers/page_controller.rb:64:in `show'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:1101:in `send'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:1101:in `perform_action_without_filters'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:696:in `call_filters'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:688:in `perform_action_without_benchmark'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
        c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/rescue.rb:83:in `perform_action'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:435:in `send'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:435:in `process_without_filters'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/filters.rb:684:in `process_without_session_management_support'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/session_management.rb:114:in `process'
        c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:334:in `process'
        c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/dispatcher.rb:41:in `dispatch'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:76:in `process'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:74:in `synchronize'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb:74:in `process'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:159:in `process_client'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in `each'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in `process_client'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `run'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `initialize'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `new'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `run'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `initialize'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `new'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `run'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:282:in `run'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in `each'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/configurator.rb:281:in `run'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:128:in `run'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/command.rb:212:in `run'
        c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:281
        c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in `load'
        c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in `load'
        c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'
        c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in `load'
        c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/servers/mongrel.rb:60
        c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
        c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'
        c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
        c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/server.rb:39
        c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        script/server:3

        Comment

        • improvcornartist
          Recognized Expert Contributor
          • May 2007
          • 303

          #5
          You might look here or here to see if either will help with your issue.

          Comment

          Working...