faye-websocket 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of faye-websocket might be problematic. Click here for more details.

File without changes
@@ -69,7 +69,7 @@ module Faye
69
69
  return if @ready_state == CLOSED
70
70
  @ready_state = CLOSED
71
71
  EventMachine.cancel_timer(@ping_timer) if @ping_timer
72
- @stream.close_connection_after_writing
72
+ @stream.close_connection_after_writing if @stream
73
73
  event = Event.new('close', :code => code || 1000, :reason => reason || '')
74
74
  event.init_event('close', false, false)
75
75
  dispatch_event(event)
@@ -25,6 +25,11 @@ module Faye
25
25
  @stream = conn
26
26
  conn.parent = self
27
27
  end
28
+ rescue => error
29
+ event = Event.new('error')
30
+ event.init_event('error', false, false)
31
+ dispatch_event(event)
32
+ finalize(error.message, 1006)
28
33
  end
29
34
 
30
35
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faye-websocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-12 00:00:00.000000000 Z
12
+ date: 2013-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
@@ -196,9 +196,11 @@ files:
196
196
  - examples/config.ru
197
197
  - examples/rainbows.conf
198
198
  - examples/sse.html
199
+ - examples/log/passenger.8001.log
199
200
  - examples/app.rb
200
201
  - examples/server.rb
201
202
  - examples/client.rb
203
+ - examples/tmp/pids/passenger.8001.pid.lock
202
204
  - examples/haproxy.conf
203
205
  - examples/autobahn_client.rb
204
206
  homepage: http://github.com/faye/faye-websocket-ruby