async-io 1.32.2 → 1.33.0

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: f27321bce6882e4ce01cb5682d1c6863d3876a46b87af9813af151acf3a55561
4
- data.tar.gz: 62870077e15a05631a2fb655025a64afe99d0ff0b815c9a7badb25d4d8af61a9
3
+ metadata.gz: 75eb7a11c19605c547fda13e17e50f1c18411a3666c05a40c3393de6dd0ec350
4
+ data.tar.gz: 89e7ae1d13ecee8609ccffcfc819a209175e306ff647f709ad04879c5aa7e0d3
5
5
  SHA512:
6
- metadata.gz: d655cd100a8b02118786b83baf628f0e4021610f8b61a608af88e33a6808bdb295de80261e7fe006f7c75bf3b208d72f9777cf4b0e2e0e926cb90ceac0aa8152
7
- data.tar.gz: 3ba5e4f6da03ae5456de974a32ca34f1bcf6a16723d31113f2eaa291f66e8811bc9b7db8d02b71b83fef1468b8a3cdfc55534c26bcb6dd5fe209b92be6a4d52f
6
+ metadata.gz: 31b20b70904328a61be7fd88ee6ed02517cfa2a1a04ef99432ba8f54e1527320892a3302cad90565246e8e409a52ae2fc27a6036001afc23e5696d13dcc6af9f
7
+ data.tar.gz: 3520d2320d1fbd1fa584018e85a6d388663d2b27c2e68dd7821e1f6a2a089e349f88c128825c5fd9901a702e97ea3d262c9ffd2a8ed5a5102c6610899c7089c2
@@ -29,7 +29,13 @@ module Async
29
29
  # Create a new `SharedEndpoint` by binding to the given endpoint.
30
30
  def self.bound(endpoint, backlog: Socket::SOMAXCONN, close_on_exec: false)
31
31
  wrappers = endpoint.bound do |server|
32
- server.listen(backlog)
32
+ # This is somewhat optional. We want to have a generic interface as much as possible so that users of this interface can just call it without knowing a lot of internal details. Therefore, we ignore errors here if it's because the underlying socket does not support the operation.
33
+ begin
34
+ server.listen(backlog)
35
+ rescue Errno::EOPNOTSUPP
36
+ # Ignore.
37
+ end
38
+
33
39
  server.close_on_exec = close_on_exec
34
40
  server.reactor = nil
35
41
  end
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Async
24
24
  module IO
25
- VERSION = "1.32.2"
25
+ VERSION = "1.33.0"
26
26
  end
27
27
  end
data/lib/async/io.rb CHANGED
@@ -34,5 +34,9 @@ module Async
34
34
  def self.file_descriptor_limit
35
35
  Process.getrlimit(Process::RLIMIT_NOFILE).first
36
36
  end
37
+
38
+ def self.buffer?
39
+ ::IO.const_defined?(:Buffer)
40
+ end
37
41
  end
38
42
  end
metadata CHANGED
@@ -1,14 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.32.2
4
+ version: 1.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
+ - Aurora
9
+ - Olle Jonsson
10
+ - Bruno Sutic
11
+ - Benoit Daloze
12
+ - Cyril Roelandt
13
+ - Thibaut Girka
14
+ - Jiang Jinyang
15
+ - Janko Marohnić
8
16
  autorequire:
9
17
  bindir: bin
10
18
  cert_chain: []
11
- date: 2021-07-16 00:00:00.000000000 Z
19
+ date: 2022-03-07 00:00:00.000000000 Z
12
20
  dependencies:
13
21
  - !ruby/object:Gem::Dependency
14
22
  name: async
@@ -52,6 +60,20 @@ dependencies:
52
60
  - - "~>"
53
61
  - !ruby/object:Gem::Version
54
62
  version: '1.10'
63
+ - !ruby/object:Gem::Dependency
64
+ name: bake
65
+ requirement: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
55
77
  - !ruby/object:Gem::Dependency
56
78
  name: covered
57
79
  requirement: !ruby/object:Gem::Requirement
@@ -147,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
169
  - !ruby/object:Gem::Version
148
170
  version: '0'
149
171
  requirements: []
150
- rubygems_version: 3.2.22
172
+ rubygems_version: 3.2.32
151
173
  signing_key:
152
174
  specification_version: 4
153
175
  summary: Provides support for asynchonous TCP, UDP, UNIX and SSL sockets.