diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-03-28 17:35:10 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-03-28 17:35:10 -0700 |
commit | b04d465d65f896290d36538181d91dd264d10575 (patch) | |
tree | 6e00e4ec3421c07713da4d5678c231a5f2b19d73 /lib/rainbows/fiber | |
parent | 12a4c53a47bb0c7bef5e2df732fa02532a969a54 (diff) | |
download | rainbows-b04d465d65f896290d36538181d91dd264d10575.tar.gz |
Every concurrency model does this the same way. This removes the Rainbows::Const::LOCALHOST constant and may break some existing apps that rely on it.
Diffstat (limited to 'lib/rainbows/fiber')
-rw-r--r-- | lib/rainbows/fiber/rev.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/fiber/rev.rb b/lib/rainbows/fiber/rev.rb index bd9638f..a733103 100644 --- a/lib/rainbows/fiber/rev.rb +++ b/lib/rainbows/fiber/rev.rb @@ -80,7 +80,7 @@ module Rainbows::Fiber hp = HttpParser.new env = {} alive = true - remote_addr = TCPSocket === io ? io.peeraddr.last : LOCALHOST + remote_addr = Rainbows.addr(io) begin # loop buf << (client.read_timeout or return) until hp.headers(env, buf) |