Skip to content

Commit

Permalink
HttpRequest: update comment regarding short writes
Browse files Browse the repository at this point in the history
Or lack thereof on POSIX.
  • Loading branch information
Eric Wong committed Mar 11, 2009
1 parent 6d618ae commit ca4265e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/unicorn/http_request.rb
Expand Up @@ -150,8 +150,7 @@ def rack_env
# 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!
Expand Down

0 comments on commit ca4265e

Please sign in to comment.