Forum: Ruby Timeout Error or sysread': end of file reached (EOFError)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Muazzam Mushtaq (Guest)
on 2006-03-28 09:05
I am trying to access the gmail account through net/pop library. I have
set the open time out to 180 even but still whenever i try to execute
the code it gives me the End of file reached (EOFError). And if keep the
open time out to its default value which is 60 then it comes up with
timeout error.

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 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:853:in `recv_response'
	from c:/ruby/lib/ruby/1.8/net/pop.rb:752:in `initialize'
	from c:/ruby/lib/ruby/1.8/net/pop.rb:869:in `critical'
	from c:/ruby/lib/ruby/1.8/net/pop.rb:752:in `initialize'
	from c:/ruby/lib/ruby/1.8/net/pop.rb:441: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:301:in `auth_only'
	from c:/ruby/lib/ruby/1.8/net/pop.rb:293:in `auth_only'
	from C:/ruby/test/test1:3

c:/ruby/lib/ruby/1.8/timeout.rb:54:in `rbuf_fill': execution expired
(Timeout::Error)
	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:853:in `recv_response'
	from c:/ruby/lib/ruby/1.8/net/pop.rb:752:in `initialize'
	from c:/ruby/lib/ruby/1.8/net/pop.rb:869:in `critical'
	from c:/ruby/lib/ruby/1.8/net/pop.rb:752:in `initialize'
	from c:/ruby/lib/ruby/1.8/net/pop.rb:441: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:301:in `auth_only'
	from c:/ruby/lib/ruby/1.8/net/pop.rb:293:in `auth_only'
	from C:/ruby/test/test1:3


Waiting for urgent answers,
Thanks in advance
This topic is locked and can not be replied to.