async-io 1.31.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/async/io/shared_endpoint.rb +4 -4
- data/lib/async/io/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28c67d83e13a3537bb14d747c72bc256835037bd124c7f3d1a7d3d1bea352a21
|
4
|
+
data.tar.gz: 0bf69a853dd14ecb1523d2b2b2b228efcb04570483d005c02f9c10c6cf0b66db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccbfdff02524ba1aacb471e178cbfbde88eedb0ea933a7a22b4dcac1af7294eb5b3c92107bb7f7202a5023f9d679253e58b3576eba862cdb9dded189f32c3624
|
7
|
+
data.tar.gz: e19b54ae9277073a71b1097bb8e7d287045a91dd9a1bcf0a27a399c3138f18f0511126e0d555d95c5486d16a42e03978b07baf7c3d8c8d96a034377f27bb456f
|
@@ -27,10 +27,10 @@ module Async
|
|
27
27
|
# Pre-connect and pre-bind sockets so that it can be used between processes.
|
28
28
|
class SharedEndpoint < Endpoint
|
29
29
|
# Create a new `SharedEndpoint` by binding to the given endpoint.
|
30
|
-
def self.bound(endpoint, backlog
|
30
|
+
def self.bound(endpoint, backlog: Socket::SOMAXCONN, close_on_exec: false)
|
31
31
|
wrappers = endpoint.bound do |server|
|
32
32
|
server.listen(backlog)
|
33
|
-
server.close_on_exec =
|
33
|
+
server.close_on_exec = close_on_exec
|
34
34
|
server.reactor = nil
|
35
35
|
end
|
36
36
|
|
@@ -38,10 +38,10 @@ module Async
|
|
38
38
|
end
|
39
39
|
|
40
40
|
# Create a new `SharedEndpoint` by connecting to the given endpoint.
|
41
|
-
def self.connected(endpoint)
|
41
|
+
def self.connected(endpoint, close_on_exec: false)
|
42
42
|
wrapper = endpoint.connect
|
43
43
|
|
44
|
-
wrapper.close_on_exec =
|
44
|
+
wrapper.close_on_exec = close_on_exec
|
45
45
|
wrapper.reactor = nil
|
46
46
|
|
47
47
|
return self.new(endpoint, [wrapper])
|
data/lib/async/io/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.32.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
189
|
- !ruby/object:Gem::Version
|
190
190
|
version: '0'
|
191
191
|
requirements: []
|
192
|
-
rubygems_version: 3.2
|
192
|
+
rubygems_version: 3.1.2
|
193
193
|
signing_key:
|
194
194
|
specification_version: 4
|
195
195
|
summary: Provides support for asynchonous TCP, UDP, UNIX and SSL sockets.
|