faye-websocket 0.4.5-java → 0.4.6-java

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.

@@ -1,3 +1,8 @@
1
+ === 0.4.6 / 2012-07-09
2
+
3
+ * Add 'Connection: close' to EventSource response
4
+
5
+
1
6
  === 0.4.5 / 2012-04-06
2
7
 
3
8
  * Add WebSocket error code 1011.
@@ -40,6 +40,7 @@ module Faye
40
40
  @stream.write("HTTP/1.1 200 OK\r\n" +
41
41
  "Content-Type: text/event-stream\r\n" +
42
42
  "Cache-Control: no-cache, no-store\r\n" +
43
+ "Connection: close\r\n" +
43
44
  "\r\n\r\n" +
44
45
  "retry: #{ (@retry * 1000).floor }\r\n\r\n")
45
46
 
Binary file
@@ -127,13 +127,6 @@ describe Faye::WebSocket::HybiParser do
127
127
  bytes(@parser.frame message).should == [0x81, 0x7e, 0x00, 0xc8] + [0x48, 0x65, 0x6c, 0x6c, 0x6f] * 40
128
128
  end
129
129
 
130
- it "encodes long strings using extra length bytes" do
131
- message = "Hello" * 13108
132
- bytes(@parser.frame message).should == [0x81, 0x7f] +
133
- [0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04] +
134
- [0x48, 0x65, 0x6c, 0x6c, 0x6f] * 13108
135
- end
136
-
137
130
  it "encodes close frames with an error code" do
138
131
  frame = @parser.frame "Hello", :close, 1002
139
132
  bytes(frame).should == [0x88, 0x07, 0x03, 0xea, 0x48, 0x65, 0x6c, 0x6c, 0x6f]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: faye-websocket
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.5
5
+ version: 0.4.6
6
6
  platform: java
7
7
  authors:
8
8
  - James Coglan
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-04-06 00:00:00 Z
13
+ date: 2012-07-09 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: eventmachine