# File lib/ftw/protocol.rb, line 109 def write_all(io, string) while string.bytesize > 0 w = io.write(string) string = string.byteslice(w..-1) end end