Its shouldn't be prohibitively expensive, I'll have to run more extensive 
test to analyze the cost.

On Saturday, August 30, 2014 8:28:16 PM UTC+8, ruby user wrote:
>
> I am getting problems with a json request using the rails api gem and 
> webrick.
>
> When i do a index search with GET, i have an error ERROR 
> Errno::ECONNRESET: Connection reset by peer @ io_fillbuf. Below is a full 
> log of the problem.I have been trying to google the io_fillbuf but i can’t 
> seem to find any clear answers to what it is.
>
> In my ApplicationController i have “skip_before_action 
> :verify_authenticity_token” as I am just using rails api for a pure json 
> app.
>
> Started GET "/api/v1/images.json?type=index&more=yes&offset=80" for 
> 169.254.249.61 at 2014-08-21 10:30:15 Processing by 
> Api::V1::ImagesController#index as JSON
>
> Parameters: {"type"=>"index", "more"=>"yes", "offset"=>"80"} index
>
> params type index
> images length 20
> Completed 200 OK in 97ms (Views: 0.1ms | ActiveRecord: 0.0ms)
> [2014-08-21 10:30:15] ERROR Errno::ECONNRESET: Connection reset by peer @ 
> io_fillbuf - fd:19
>
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:80:in 
> `eof?' 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:80:in 
> `run' 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in 
> `block in start_thread'
>
> [2014-08-21 10:30:15] ERROR Errno::ECONNRESET: Connection reset by peer @ 
> io_fillbuf - fd:15 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:80:in 
> `eof?' 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:80:in 
> `run' 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in 
> `block in start_thread'
>
> [2014-08-21 10:30:15] ERROR Errno::ECONNRESET: Connection reset by peer @ 
> io_fillbuf - fd:18 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:80:in 
> `eof?' 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:80:in 
> `run' 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in 
> `block in start_thread'
>
> [2014-08-21 10:30:15] ERROR Errno::ECONNRESET: Connection reset by peer @ 
> io_fillbuf - fd:15 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:80:in 
> `eof?' 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:80:in 
> `run' 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in 
> `block in start_thread'
>
> [2014-08-21 10:30:15] ERROR Errno::ECONNRESET: Connection reset by peer @ 
> io_fillbuf - fd:18 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:80:in 
> `eof?' 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:80:in 
> `run' 
> /Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in 
> `block in start_thread' 
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/90d38129-13a8-4352-a1b0-95d402849a6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to