Skip to content

Commit

Permalink
don't buffer data in backend, closes igrigorik#20
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Dec 27, 2011
1 parent f49bbc4 commit c7e9b6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/em-proxy/backend.rb
@@ -1,12 +1,11 @@
module EventMachine
module ProxyServer
class Backend < EventMachine::Connection
attr_accessor :plexer, :data, :name, :debug
attr_accessor :plexer, :name, :debug

def initialize(debug = false)
@debug = debug
@connected = EM::DefaultDeferrable.new
@data = []
end

def connection_completed
Expand All @@ -17,7 +16,6 @@ def connection_completed

def receive_data(data)
debug [@name, data]
@data.push data
@plexer.relay_from_backend(@name, data)
end

Expand Down

0 comments on commit c7e9b6a

Please sign in to comment.