Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change proxied_bytes to get_proxied_bytes

  • Loading branch information...
commit 1f7bde88a5e2de3158e70e97ed4583ae7a9b272b 1 parent df92251
@tmm1 tmm1 authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/em/connection.rb
  2. +1 −1  tests/test_proxy_connection.rb
View
4 lib/em/connection.rb
@@ -240,8 +240,8 @@ def stop_proxying
# The number of bytes proxied to another connection. Reset to zero when
# EventMachine::Connection#proxy_incoming_to is called, and incremented whenever data is proxied.
- def proxied_bytes
- EventMachine::get_proxied_bytes(self.signature)
+ def get_proxied_bytes
+ EventMachine::get_proxied_bytes(@signature)
end
# EventMachine::Connection#close_connection is called only by user code, and never
View
2  tests/test_proxy_connection.rb
@@ -24,7 +24,7 @@ def proxy_target_unbound
end
def unbind
- $proxied_bytes = proxied_bytes
+ $proxied_bytes = self.get_proxied_bytes
@client.close_connection_after_writing
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.