# File lib/mongrel.rb, line 466
466:     def send_file(path, small_file = false)
467:       if small_file
468:         File.open(path, "rb") {|f| @socket << f.read }
469:       else
470:         File.open(path, "rb") do |f|
471:           while chunk = f.read(Const::CHUNK_SIZE) and chunk.length > 0
472:             begin
473:               write(chunk)
474:             rescue Object => exc
475:               break
476:             end
477:           end
478:         end
479:       end
480:       @body_sent = true
481:     end