async-http 0.81.0 → 0.82.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: 1d568651092adf60463aa881e3d8f3df116358a0e8bd46f521d18c0878b89d3e
4
- data.tar.gz: f7910bf26008caaaae2a00cec6e02bb9c6c8a4ba494c6d8061e9411ecd60fe35
3
+ metadata.gz: 3a11ccce0d608ca64fbed5c7e5cc23428e25d618f0b6b68aa34e6be7516a6982
4
+ data.tar.gz: 890277e43541eaacb5f9f756f697505bcf8443e5aeea7d99b43d23df94896f87
5
5
  SHA512:
6
- metadata.gz: bf77f7faf627288367541ce42305c6f011974f683314b6aff2799dcef685336aaf0a2ea9397b6bbc32a4f59567a9fb3e757ce10d177f1779c204feb1a14a3ab2
7
- data.tar.gz: 1961f2216b13441e8d25c7f4b64c84989065bb998fb298655079040754bfd8d6f072a08a7134957ea5b624517d0ab0cf2663570ce13f825b44a15584fcf4adc2
6
+ metadata.gz: 2748cb15c2ae647b7aad72c3151edf747f4c1a366c495c981a0a135d1219b4bccdf5f8433ca44e79d1e92f9e3d4e54a775747df97a0ecede05982e6451f538fb
7
+ data.tar.gz: 0647bec2b9b92d5fddbf9ef43bdaa53d626026172d5dc0a922da0716a0c3cde75e8d586a12f79ad851f98994c30c6a1b534e78dd96bd83ee061778ee243cfb41
checksums.yaml.gz.sig CHANGED
Binary file
@@ -41,17 +41,6 @@ module Async
41
41
  false
42
42
  end
43
43
 
44
- def read_line?
45
- @stream.read_until(CRLF)
46
- rescue => error
47
- # Bascially, any error will cause the connection to be closed:
48
- return nil
49
- end
50
-
51
- def read_line
52
- @stream.read_until(CRLF) or raise EOFError, "Could not read line!"
53
- end
54
-
55
44
  def peer
56
45
  @stream.io
57
46
  end
@@ -61,10 +61,8 @@ module Async
61
61
  self.receive_initial_headers(super, frame.end_stream?)
62
62
  end
63
63
 
64
- # TODO this might need to be in an ensure block:
65
- if input = @input and frame.end_stream?
66
- @input = nil
67
- input.close_write
64
+ if @input and frame.end_stream?
65
+ @input.close_write
68
66
  end
69
67
  rescue ::Protocol::HTTP2::HeaderError => error
70
68
  Console.logger.debug(self, error)
@@ -103,7 +101,6 @@ module Async
103
101
 
104
102
  if frame.end_stream?
105
103
  @input.close_write
106
- @input = nil
107
104
  end
108
105
  end
109
106
 
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module HTTP
8
- VERSION = "0.81.0"
8
+ VERSION = "0.82.1"
9
9
  end
10
10
  end
data/readme.md CHANGED
@@ -16,6 +16,10 @@ Please see the [project documentation](https://socketry.github.io/async-http/) f
16
16
 
17
17
  Please see the [project releases](https://socketry.github.io/async-http/releases/index) for all releases.
18
18
 
19
+ ### v0.82.0
20
+
21
+ - `protocol-http1` introduces a line length limit for request line, response line, header lines and chunk length lines.
22
+
19
23
  ### v0.81.0
20
24
 
21
25
  - Expose `protocol` and `endpoint` as tags to `async-pool` for improved instrumentation.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.82.0
4
+
5
+ - `protocol-http1` introduces a line length limit for request line, response line, header lines and chunk length lines.
6
+
3
7
  ## v0.81.0
4
8
 
5
9
  - Expose `protocol` and `endpoint` as tags to `async-pool` for improved instrumentation.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.81.0
4
+ version: 0.82.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -58,7 +58,7 @@ cert_chain:
58
58
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
59
59
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
60
60
  -----END CERTIFICATE-----
61
- date: 2024-10-13 00:00:00.000000000 Z
61
+ date: 2024-10-16 00:00:00.000000000 Z
62
62
  dependencies:
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: async
@@ -108,14 +108,14 @@ dependencies:
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: '0.4'
111
+ version: '0.6'
112
112
  type: :runtime
113
113
  prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: '0.4'
118
+ version: '0.6'
119
119
  - !ruby/object:Gem::Dependency
120
120
  name: protocol-http
121
121
  requirement: !ruby/object:Gem::Requirement
@@ -134,16 +134,16 @@ dependencies:
134
134
  name: protocol-http1
135
135
  requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - "~>"
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: '0.27'
139
+ version: 0.28.1
140
140
  type: :runtime
141
141
  prerelease: false
142
142
  version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - "~>"
144
+ - - ">="
145
145
  - !ruby/object:Gem::Version
146
- version: '0.27'
146
+ version: 0.28.1
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: protocol-http2
149
149
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file