lib/proxymachine/client_connection.rb in fizx-proxymachine-1.5.0 vs lib/proxymachine/client_connection.rb in fizx-proxymachine-1.5.1
- old
+ new
@@ -81,9 +81,10 @@
klass = cb ? CallbackServerConnection : ServerConnection
@server_side = klass.request(host, port, self)
@server_side.callback = cb if cb
@server_side.pending_connect_timeout = @connect_timeout
@server_side.comm_inactivity_timeout = @inactivity_timeout
+ server_connection_failed if @server_side.error?
end
# Called by the server side immediately after the server connection was
# successfully established. Send any buffer we've accumulated and start
# raw proxying.