io-endpoint 0.10.1 → 0.10.2
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
- checksums.yaml.gz.sig +0 -0
- data/lib/io/endpoint/bound_endpoint.rb +3 -10
- data/lib/io/endpoint/composite_endpoint.rb +1 -1
- data/lib/io/endpoint/connected_endpoint.rb +1 -1
- data/lib/io/endpoint/generic.rb +1 -1
- data/lib/io/endpoint/shared_endpoint.rb +1 -1
- data/lib/io/endpoint/ssl_endpoint.rb +1 -1
- data/lib/io/endpoint/version.rb +2 -2
- data/lib/io/endpoint/wrapper.rb +7 -2
- data/lib/io/endpoint.rb +1 -1
- data/license.md +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -3
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54e99e42b471fa6902626afb86c9ad63d41156d2e31a4da02d690578a10d30ee
|
4
|
+
data.tar.gz: e3e1848fee0cc45166f00d7c795afa0498ce63bbd76eb57f532e9c970f2d2f2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83de2a35af8131ef790632de7b7406f86223cbf0786878106b220c5b5b59b4793dd5b20fad04471becfe81208f852134c767793f69ac8eeb20f75788859a1773
|
7
|
+
data.tar.gz: db8fe3a0c4b0b827d4c4d940dd41060226e7abdd16db2be07d0c566ee38c80760a803d5af397538b007271a35b5f24a9d4b231ca006b006389e225577ee61099
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright,
|
4
|
+
# Copyright, 2024, by Samuel Williams.
|
5
5
|
|
6
6
|
require_relative 'generic'
|
7
7
|
require_relative 'composite_endpoint'
|
@@ -12,15 +12,8 @@ module IO::Endpoint
|
|
12
12
|
def self.bound(endpoint, backlog: Socket::SOMAXCONN, close_on_exec: false)
|
13
13
|
sockets = endpoint.bind
|
14
14
|
|
15
|
-
sockets.each do |
|
16
|
-
|
17
|
-
begin
|
18
|
-
server.listen(backlog)
|
19
|
-
rescue Errno::EOPNOTSUPP
|
20
|
-
# Ignore.
|
21
|
-
end
|
22
|
-
|
23
|
-
server.close_on_exec = close_on_exec
|
15
|
+
sockets.each do |socket|
|
16
|
+
socket.close_on_exec = close_on_exec
|
24
17
|
end
|
25
18
|
|
26
19
|
return self.new(endpoint, sockets, **endpoint.options)
|
data/lib/io/endpoint/generic.rb
CHANGED
data/lib/io/endpoint/version.rb
CHANGED
data/lib/io/endpoint/wrapper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2023, by Samuel Williams.
|
4
|
+
# Copyright, 2023-2024, by Samuel Williams.
|
5
5
|
|
6
6
|
require 'socket'
|
7
7
|
|
@@ -128,7 +128,12 @@ module IO::Endpoint
|
|
128
128
|
socket.bind(local_address.to_sockaddr)
|
129
129
|
|
130
130
|
if backlog
|
131
|
-
|
131
|
+
begin
|
132
|
+
# Generally speaking, bind/listen is a common pattern, but it's not applicable to all socket types. We ignore the error if it's not supported as the alternative is exposing this upstream, which seems less desirable than handling it here. In other words, `bind` in this context means "prepare it to accept connections", whatever that means for the given socket type.
|
133
|
+
socket.listen(backlog)
|
134
|
+
rescue Errno::EOPNOTSUPP
|
135
|
+
# Ignore.
|
136
|
+
end
|
132
137
|
end
|
133
138
|
rescue
|
134
139
|
socket&.close
|
data/lib/io/endpoint.rb
CHANGED
data/license.md
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: io-endpoint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
37
37
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
38
38
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
39
39
|
-----END CERTIFICATE-----
|
40
|
-
date: 2024-04-
|
40
|
+
date: 2024-04-24 00:00:00.000000000 Z
|
41
41
|
dependencies: []
|
42
42
|
description:
|
43
43
|
email:
|
@@ -65,6 +65,7 @@ licenses:
|
|
65
65
|
- MIT
|
66
66
|
metadata:
|
67
67
|
documentation_uri: https://socketry.github.io/io-endpoint
|
68
|
+
source_code_uri: https://github.com/socketry/io-endpoint.git
|
68
69
|
post_install_message:
|
69
70
|
rdoc_options: []
|
70
71
|
require_paths:
|
@@ -73,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
74
|
requirements:
|
74
75
|
- - ">="
|
75
76
|
- !ruby/object:Gem::Version
|
76
|
-
version: '3.
|
77
|
+
version: '3.1'
|
77
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
79
|
requirements:
|
79
80
|
- - ">="
|
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
57���f��S�Ш������Α����Y�|W}��!���QL���2b���>n��+�>�Djf^3K!��rD V�&>��I��rzl#�_��0x߉�i��u1��x���ωë�6Hr��ˋ��,�몎�6�ѝ�{�<F��|�>��ʱ�<lS�X yai�zf��ҡ�h�Z��o�)>�����b2T��s�y��YMaNזVU�I��S��5�V�*���X�Cw����8.n�6�t�Fu� �J�Jtg��\��[���k*L��M=�dQ�s!d�z��-�{��/.���;㝉%��P�y;��S!�<��DGf{��of<ˊ�Y�gĆ���$'(>D�>�}��/_� �1��a�
|
2
|
+
A.X����s�5w��$薹�S]�
|