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