fizx-proxymachine 1.5.3 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'fizx-proxymachine'
16
- s.version = '1.5.3'
16
+ s.version = '1.5.4'
17
17
  s.date = '2011-05-07'
18
18
  s.rubyforge_project = 'fizx-proxymachine'
19
19
 
data/lib/proxymachine.rb CHANGED
@@ -10,7 +10,7 @@ require 'proxymachine/callback_server_connection'
10
10
  $logger = Logger.new(STDOUT)
11
11
 
12
12
  class ProxyMachine
13
- VERSION = '1.5.3'
13
+ VERSION = '1.5.4'
14
14
 
15
15
  MAX_FAST_SHUTDOWN_SECONDS = 10
16
16
 
@@ -12,6 +12,7 @@ class ProxyMachine
12
12
  def receive_data(data)
13
13
  @buffer ||= []
14
14
  @buffer << data
15
+ @data_received = true
15
16
  if returned = @callback.call(@buffer.join(''))
16
17
  @client_side.send_data returned
17
18
  proxy_incoming_to(@client_side, 10240)
@@ -76,7 +76,7 @@ class ProxyMachine
76
76
  def connect_to_server
77
77
  fail "connect_server called without remote established" if @remote.nil?
78
78
  host, port = @remote
79
- $logger.info "Establishing new connection with #{host}:#{port} OHAI"
79
+ $logger.info "Establishing new connection with #{host}:#{port}"
80
80
  cb = @commands[:callback]
81
81
  klass = cb ? CallbackServerConnection : ServerConnection
82
82
  @server_side = klass.request(host, port, self)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fizx-proxymachine
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.5.3
5
+ version: 1.5.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tom Preston-Werner