faye-websocket 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42cb4ec90fb1f2d1fd16739908d415035255136b33c1b8100f4370417d7afeee
4
- data.tar.gz: b75409884d2ac82e84a59752027085106d1995e92d9603628400b13d7214bc4d
3
+ metadata.gz: 5d911cb9311b3ebcba587cea651bc49cf4ba29db10ef7b3c0b9bb7440571e39e
4
+ data.tar.gz: 81a0a87fd328f88730e84033ad795b28d969d12dfd7bcdd6c5f93e12b865bf44
5
5
  SHA512:
6
- metadata.gz: 23293a16e2b1068bb1bd9a7c4e7516f9031185393e50d766833fe468bff7fb3b807d69015c022f35545cf41abb3e5ff9cf96282bb797ecba0eee60cea63de428
7
- data.tar.gz: 46ac66a36431ee0adc04dbe5286499c38904b79e4da3259bb42c57c49ff97736568957da641fd640fedc237f67e258d06d5cbd0abb5d3d10eaf662f991368b67
6
+ metadata.gz: 7c4bc1540dcb37c6c7ed508ae0d459878fef3b66009acd26555ee63b3a7013ba262cffb6fe82120385a002e12847e5c3c33ec3c44cb7ba1e7be7e7f730b1ab05
7
+ data.tar.gz: 953bdb31da0463fbda511ca4b1276ce88a5e2e9273d52c34e4b13eb018d4dec41c1dbd678c8ebcad700a4230e26dc9576d89753fbebd743e743e1bdb48da394c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.11.1 / 2021-05-24
2
+
3
+ - Prevent the client hanging if `close()` is called when already closing
4
+
1
5
  ### 0.11.0 / 2020-07-31
2
6
 
3
7
  - Implement TLS certificate verification and enable it by default on client
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2010-2020 James Coglan
1
+ Copyright 2010-2021 James Coglan
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
4
  this file except in compliance with the License. You may obtain a copy of the
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # faye-websocket [![Build status](https://secure.travis-ci.org/faye/faye-websocket-ruby.svg)](http://travis-ci.org/faye/faye-websocket-ruby)
1
+ # faye-websocket
2
2
 
3
3
  This is a general-purpose WebSocket implementation extracted from the
4
4
  [Faye](http://faye.jcoglan.com) project. It provides classes for easily building
@@ -86,8 +86,11 @@ module Faye
86
86
  "#{ code } is neither."
87
87
  end
88
88
 
89
+ if @ready_state < CLOSING
90
+ @close_timer = EventMachine.add_timer(CLOSE_TIMEOUT) { begin_close('', 1006) }
91
+ end
92
+
89
93
  @ready_state = CLOSING unless @ready_state == CLOSED
90
- @close_timer = EventMachine.add_timer(CLOSE_TIMEOUT) { begin_close('', 1006) }
91
94
 
92
95
  @driver.close(reason, code)
93
96
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faye-websocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Coglan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-31 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine
@@ -123,33 +123,39 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.2.0
125
125
  - !ruby/object:Gem::Dependency
126
- name: rainbows
126
+ name: thin
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 4.4.0
131
+ version: 1.2.0
132
+ - - ">"
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
132
135
  type: :development
133
136
  prerelease: false
134
137
  version_requirements: !ruby/object:Gem::Requirement
135
138
  requirements:
136
- - - "~>"
139
+ - - ">="
137
140
  - !ruby/object:Gem::Version
138
- version: 4.4.0
141
+ version: 1.2.0
142
+ - - ">"
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
139
145
  - !ruby/object:Gem::Dependency
140
- name: thin
146
+ name: rainbows
141
147
  requirement: !ruby/object:Gem::Requirement
142
148
  requirements:
143
- - - ">="
149
+ - - "~>"
144
150
  - !ruby/object:Gem::Version
145
- version: 1.2.0
151
+ version: 4.4.0
146
152
  type: :development
147
153
  prerelease: false
148
154
  version_requirements: !ruby/object:Gem::Requirement
149
155
  requirements:
150
- - - ">="
156
+ - - "~>"
151
157
  - !ruby/object:Gem::Version
152
- version: 1.2.0
158
+ version: 4.4.0
153
159
  - !ruby/object:Gem::Dependency
154
160
  name: goliath
155
161
  requirement: !ruby/object:Gem::Requirement
@@ -224,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
230
  - !ruby/object:Gem::Version
225
231
  version: '0'
226
232
  requirements: []
227
- rubygems_version: 3.1.2
233
+ rubygems_version: 3.1.6
228
234
  signing_key:
229
235
  specification_version: 4
230
236
  summary: Standards-compliant WebSocket server and client