Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

HttpRequest: update comment regarding short writes

Or lack thereof on POSIX.
  • Loading branch information...
commit ca4265ea4d8bdeb9c569a50a05ee45e31f4b4269 1 parent 6d618ae
Eric Wong authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/unicorn/http_request.rb
View
3  lib/unicorn/http_request.rb
@@ -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!
Please sign in to comment.
Something went wrong with that request. Please try again.