From ca4265ea4d8bdeb9c569a50a05ee45e31f4b4269 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 10 Mar 2009 18:05:23 -0700 Subject: HttpRequest: update comment regarding short writes Or lack thereof on POSIX. --- lib/unicorn/http_request.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index b06e3ae..ce0e408 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -150,8 +150,7 @@ module Unicorn # the @body already. It will return true if successful and false if not. def read_body(socket, remain) while remain > 0 - # ASSUME: we are writing to a disk and these writes always write the - # requested amount. This is true on Linux. + # writes always write the requested amount on a POSIX filesystem remain -= @body.syswrite(read_socket(socket)) end true # success! -- cgit v1.2.3-24-ge0c7