Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Occasional errors when using livereload flag #6899
My Reproduction Steps
Note: Using rbenv to manage Ruby versions, this repo is on 2.4.1
The Output I Wanted
Expecting to see this when I make changes to the source files:
The Output I'm Seeing
I do see the above, but regularly get the following errors upon saving files:
Only seeing this in the output:
ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:17 /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `eof?' /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `run' /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
For the other error:
ERROR Errno::EPROTOTYPE: Protocol wrong type for socket /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpresponse.rb:465:in `write' /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpresponse.rb:465:in `<<' /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpresponse.rb:465:in `_write_data' /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpresponse.rb:458:in `_send_file' /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpresponse.rb:413:in `send_body_io' /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpresponse.rb:305:in `send_body' /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpresponse.rb:209:in `send_response' /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:112:in `run' /.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
Whoa. I don't know what's going on here.
I think the issue might be a WEBrick bug since it looks like rails hit the same issue. That being said, a little bit of searching hasn't yielded many other mentions of either the "connection reset" or the "wrong type for socket" issues, so maybe it's an error in how WEBrick is being used.