async-http 0.65.1 → 0.66.2

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: 19fc316477ebb651d5ac4e648af51959d8933ddb881af0a25d8b15aaf4a5deee
4
- data.tar.gz: 85737be1c9bdee1deb2ff1c3934d7284cca7bb52f4cbc14af9dda0d6f19c5a7d
3
+ metadata.gz: 426d98af60ca71ce586cf31e6d29c186e5e9618a514ded1558e408178b1595b8
4
+ data.tar.gz: de7562bb9d073c686f5f7fcf3d067aa5a78d866644d9fbc6892d42acdd3ed1e3
5
5
  SHA512:
6
- metadata.gz: cdc3e537a19e0c023c66f1b144421ed61e8a6d8ba35e334c4222672bf4d39d344daddcafe67c8f9b92b9b6db691b868653d8d2120d214cdee55542680ccd6df0
7
- data.tar.gz: 62620b597d239337dab0dcab33d0aa9ca070fda7de699c0497a20b8036f3abf6d95b790bcab25d9a790c1fee0bc23f48dd01fc749df0755b8b41521bf6eaa35c
6
+ metadata.gz: 80066306c74ed642e63b5c904bfea116fdbe435f71b180e7c0d9421eb0402110c31f2a9c32e1fab099ffe64282314afaec2917f7c6ebf49d7ee3d676361d0e62
7
+ data.tar.gz: edcc44c5dfadc2f08d84fff4b142d75cbbca1599bf21af9e92a75353a9c73fd6cd5986dbdb6fb928ca5e145a89e278ba38a7231e0559c11e6f1c2dfe49e590fc
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- 
2
- )�{�*�?�|�4˫��E(AZ\�4֘��������ۡ��l�́�kw����%T�!������]Ǟ/�m���r��_p=Cg6G�F~Ƹ%� ��G x��_�� j��GT5᫤Uy0�ec.BƆ�f�!Y23E>�X�0k����?8�-��x�8~���G�,�G���1�H�y ����\f
3
- Z�f~��=|<�G�1v�.��5nG_(I��!�i��{�E E�V��18<lR@��mP �v�fk�:|���Z��{�?�����5f
1
+ i�lh!Y
2
+ �[��H�R�*5�8�UV(�cL�+���w �jP��7w����d�`Ǧqnj���OF7e5�j����U!JULf���
@@ -4,10 +4,9 @@
4
4
  # Copyright, 2017-2024, by Samuel Williams.
5
5
  # Copyright, 2019, by Brian Morearty.
6
6
 
7
+ require 'async'
7
8
  require 'io/endpoint'
8
-
9
9
  require 'protocol/http/middleware'
10
-
11
10
  require 'traces/provider'
12
11
 
13
12
  require_relative 'protocol'
@@ -64,9 +63,15 @@ module Async
64
63
  ensure
65
64
  connection&.close
66
65
  end
67
-
66
+
67
+ # @returns [Array(Async::Task)] The task that is running the server.
68
68
  def run
69
- @endpoint.accept(&self.method(:accept))
69
+ Async do |task|
70
+ @endpoint.accept(&self.method(:accept))
71
+
72
+ # Wait for all children to finish:
73
+ task.children.each(&:wait)
74
+ end
70
75
  end
71
76
 
72
77
  Traces::Provider(self) do
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module HTTP
8
- VERSION = "0.65.1"
8
+ VERSION = "0.66.2"
9
9
  end
10
10
  end
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.65.1
4
+ version: 0.66.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -57,7 +57,7 @@ cert_chain:
57
57
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
58
58
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
59
59
  -----END CERTIFICATE-----
60
- date: 2024-04-24 00:00:00.000000000 Z
60
+ date: 2024-04-30 00:00:00.000000000 Z
61
61
  dependencies:
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: async
metadata.gz.sig CHANGED
Binary file