Sha256: 2c90ec99015048718aafff56d180e0d59dc5bfec2f483ba905724117c0926b9f
Contents?: true
Size: 439 Bytes
Versions: 3
Compression:
Stored size: 439 Bytes
Contents
module EventMachine module Protocols class ServerConnection < Connection def self.request(host, port, client_side) EventMachine.connect(host, port, self, client_side) end def initialize(conn) @client_side = conn end def post_init proxy_incoming_to(@client_side, 10240) end def unbind @client_side.close_connection_after_writing end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
proxymachine-1.0.0 | lib/proxymachine/server_connection.rb |
proxymachine-0.2.8 | lib/proxymachine/server_connection.rb |
proxymachine-0.2.7 | lib/proxymachine/server_connection.rb |