excon 1.9.0 → 1.9.1
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/excon/socket.rb +4 -0
- data/lib/excon/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 92c10c40bd4ae5913caef9236145d027dc83f7ae9bf3942a91590f8b57024788
|
|
4
|
+
data.tar.gz: fa4d2d738e0cad415c7857773df9e8bfdaef62c13c13169f576037f602b3d9ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '048afa1b1b171dc7f39c0423030b4ebe3b02fdc8ad321e10c42ee13b51937b66122252ccd8aa9172c3562a9c0344937c4a8031f511f55bc160d188c360e0b061'
|
|
7
|
+
data.tar.gz: 82949f5756c66d7f027f417d78b71bbaa7941954e71f6fee9925d4eccaa6f64f3e2939f7b6273cf76556c9172a2d8fcbaddbb4aca1b4a9211f110f51f9a46f83
|
data/lib/excon/socket.rb
CHANGED
|
@@ -174,6 +174,10 @@ module Excon
|
|
|
174
174
|
rescue *CONNECT_RETRY_EXCEPTION_CLASSES
|
|
175
175
|
select_with_timeout(socket, :connect_write)
|
|
176
176
|
begin
|
|
177
|
+
# macOS 27 raises EISCONN below even when the connect failed, so check SO_ERROR first
|
|
178
|
+
errno = socket.getsockopt(::Socket::SOL_SOCKET, ::Socket::SO_ERROR).int
|
|
179
|
+
raise(SystemCallError.new("connect(2) for #{addrinfo.inspect_sockaddr}", errno)) unless errno.zero?
|
|
180
|
+
|
|
177
181
|
socket.connect_nonblock(sockaddr)
|
|
178
182
|
@socket = socket
|
|
179
183
|
rescue Errno::EISCONN
|
data/lib/excon/version.rb
CHANGED