Displaying 4 results from an estimated 4 matches for "read_nonblock".
Did you mean:
efd_nonblock
2011 May 24
0
read_nonblock': end of file reached (EOF Error)
...ddr, roxy_port, proxy_name,
proxy_pass ).start( YAHOO_WEB_SERVICE_SEARCH_URL ) do |http|
response = http.get(path)
puts response.body
end
When I run this program, I am getting this error on which I have no
clue, but the same works with browser
/usr/local/lib/ruby/1.9.1/net/protocol.rb:135:in `read_nonblock'': end
of file reached (EOFError)
from /usr/local/lib/ruby/1.9.1/net/protocol.rb:135:in `rbuf_fill''
from /usr/local/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil''
from /usr/local/lib/ruby/1.9.1/net/protocol.rb:126:in `readline''
from /usr/local/lib/ruby/1.9....
2008 Jun 10
3
Backgroundrb fixes for transfering large amounts of data
...= 0
extract(remaining,&extracter_block)
end
end
The second problem we hit was ask_status repeatedly returning nil. The
root cause of this problem is in the read_object method of the
BackgrounDRb::WorkerProxy class when a data record is large enough to
cause connection.read_nonblock to throw the Errno::EAGAIN exception
multiple times. We changed the code to make sure read_nonblock is
called repeatedly until the tokenizer finds a complete record, and this
fixed the problem.
def read_object
begin
while (true)
sock_data = ""
begin...
2006 Dec 07
6
Response To Form Submission Hanging
Hello,
I am using Mechanize to post a form to a website. When I do this by
hand in my browser the response takes about 35s to come back (it''s a
long page full of tables and graphics). When I do this with
Mechanize, the server starts to respond and then appears to hang.
The obvious conclusion is that my code is wrong but I am reasonably
sure that I haven''t altered it
2007 Dec 29
5
./script/story command
...char + STDIN.read).split("\n"))
elsif ARGV.empty?
run_story_files(all_story_files)
else
run_story_files(ARGV)
end
end
def all_story_files
Dir["#{STORIES_PATH}/**/*.story"].uniq
end
def using_stdin?
char = nil
begin
char = STDIN.read_nonblock(1)
rescue Errno::EAGAIN
return false
end
return char
end
def clean_story_paths(paths)
paths.map! { |path| File.expand_path(path) }
paths.map! { |path| path.gsub(/\.story$/, "") }
paths.map! { |path| path.gsub(/#{STORIES_PATH}\//, "") }
end...