io-endpoint 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/io/endpoint/version.rb +1 -1
- data/lib/io/endpoint/wrapper.rb +5 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38306bd23243b3a887ade16d518ed42e15d716bb71d3a8ab264e18e2d0fe0502
|
4
|
+
data.tar.gz: 50830ba30ca726fc75f02e641f21165b7790179cff22046f9ad58f26f603f34f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c9a1013a086f55b015ee37a9cecfa01739f2c6f4066cfd12c24b6ec345235a5e6f2510f09ad7947c234aada8ec3beb7bb0369dc516fae1a524084c7e9876f6f
|
7
|
+
data.tar.gz: 8c19203762bd36f40fffe3870a907e6b21119fea7d0293627e441ac7829bf023dfc7aee30b6eb24e2bb9ea26a1f929e20689dfb95bb31a8893bae356318bba03
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/io/endpoint/version.rb
CHANGED
data/lib/io/endpoint/wrapper.rb
CHANGED
@@ -102,7 +102,7 @@ module IO::Endpoint
|
|
102
102
|
# @parameter reuse_address [Boolean] Allow this port to be bound in multiple processes.
|
103
103
|
# @parameter linger [Boolean] Wait for data to be sent before closing the socket.
|
104
104
|
# @parameter protocol [Integer] The socket protocol to use.
|
105
|
-
def bind(local_address, protocol: 0, reuse_address: true, reuse_port: nil, linger: nil, bound_timeout: nil, **options, &block)
|
105
|
+
def bind(local_address, protocol: 0, reuse_address: true, reuse_port: nil, linger: nil, bound_timeout: nil, backlog: Socket::SOMAXCONN, **options, &block)
|
106
106
|
socket = nil
|
107
107
|
|
108
108
|
begin
|
@@ -126,6 +126,10 @@ module IO::Endpoint
|
|
126
126
|
end
|
127
127
|
|
128
128
|
socket.bind(local_address.to_sockaddr)
|
129
|
+
|
130
|
+
if backlog
|
131
|
+
socket.listen(backlog)
|
132
|
+
end
|
129
133
|
rescue
|
130
134
|
socket&.close
|
131
135
|
raise
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|