io-endpoint 0.13.0 → 0.13.1

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: a3e2f94c163119fe780d312df9546a2d1f8d844748ecb97562a67625c52922ad
4
- data.tar.gz: b8c061943bb548bfda2ed77ef5b8e7a7ede3238b34fbbb9e884d28b29b086a03
3
+ metadata.gz: 80426a4ee162f18eb945d9ce2fd75bde3cf23e9d5bb8333faa2ff627f6b87a23
4
+ data.tar.gz: 37d79a722c7371c993476fc3061d5c63e7c10f6051dcdc5215d079bac88d5965
5
5
  SHA512:
6
- metadata.gz: 8d89be8e49597e1af88ab58caca2fd12ccc4d2214cc70a7f4ec1c5b746c32a4a8941b6d96cc3e621af4a89eb894e64ceea61d8a0834286ca12eb243a34498d56
7
- data.tar.gz: 2ab3e03a9986203526c8e78e76538b5e3ca45c47bb0222008b1acb94031d2838309f391a3e730f534db4409d31982e8d6faaac0cea86e4d17f28d61f06271de5
6
+ metadata.gz: b89867de53a90531d5b9f1484d529e3f556b6ac75b30b6174c2bfc7f3c0199b80208b7699f6998d8c61b8e0eef666b72f66e10377090b566ae4058b4d229859d
7
+ data.tar.gz: a7c98d22e20fd3cdd558b8266b92bfb88fc110c6f0a144769daf58b505447cc0e0fff04a4b07d0bbe490327a3a46d5f7b353f436cb72651040cae8e350523f54
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- V��⅜�̱���E�(�&�Rrc��!�����M��UC�^c����!Ԡ�#�~q6��[��|v:%O��~Yz�}.�S˜��x="m���k�$�RF @a5-BE�#�D���sJ�;,��mu�q.��#�L�:pb�2����m-���S�̳�_�������{��
2
- n���� �^J �
3
- ��+ &��+.9l~6�?P������h7hUg�7�_��� �)����<1l���V��!�!�Ҧvy�]�V��C�[�𛴿-1֖��l�4���B1�� �!=��=�#�f�Q�l�q6*Ƚ�X��F��)u�'��P�?�����A �w\��Ft1���C�����,hp�o�����I�Ziv�"�U�
1
+ uL�D'0/6<}1 L-(��񞕥�t�-Q2ckH����>
2
+ 4#n�@P����.5�����B�A� D:1��^�yR�M9L�ʹ�`A�V��2Ż6&��DƼӴxow(��N�9ǃ�
@@ -5,6 +5,6 @@
5
5
 
6
6
  class IO
7
7
  module Endpoint
8
- VERSION = "0.13.0"
8
+ VERSION = "0.13.1"
9
9
  end
10
10
  end
@@ -153,7 +153,8 @@ module IO::Endpoint
153
153
 
154
154
  # Bind to a local address and accept connections in a loop.
155
155
  def accept(server, timeout: nil, linger: nil, **options, &block)
156
- while true
156
+ # Ensure we use a `loop do ... end` so that state is not leaked between iterations:
157
+ loop do
157
158
  socket, address = server.accept
158
159
 
159
160
  if linger
@@ -175,6 +176,9 @@ module IO::Endpoint
175
176
  end
176
177
  end
177
178
 
179
+ # It seems like OpenSSL doesn't return the address of the peer when using `accept`, so we need to get it from the socket:
180
+ address ||= socket.remote_address
181
+
178
182
  yield socket, address
179
183
  end
180
184
  end
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.13.0
4
+ version: 0.13.1
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-07-15 00:00:00.000000000 Z
40
+ date: 2024-08-27 00:00:00.000000000 Z
41
41
  dependencies: []
42
42
  description:
43
43
  email:
metadata.gz.sig CHANGED
@@ -1,2 +1,6 @@
1
- <C֤C�h��� �Dbw�g�����Ѣ7mfa���r�U�mGd~��qB¾!1��8i��~"�vr紦���z��N Z�o�/�����,6�-�]V-pKMé`���kA&��'.7i,�
2
- /�aPLg�p�UM��A7� ~�P1��C� �u�vaJ����r<�4�&�Y��8���p����"�>�3F !���3�x�����^r�ݹ�<Vl�=��$��,�����A���J͕�a����i�a�n�]W9�l?��O����ad[�����"�c���6�h�i�v,L� ���4[ÞB�"O�2Z��"�x�}Н �53���o��OS/�kSWk5T܎�ܖ��P
1
+ ^-apы }x�7�!ipn�K��h��EWl}�Ă��ソ]�) �?��n)3[��x�,ό��|�1�K���9S-F��g BZ�<�Oթ Rj{�:���\��ZC>6S��K_}6_��$G�`���~bp,*���$
2
+ ��ix��`}r����]M���S i� 7<����
3
+
4
+ ��%�^��47��{��ptl$��t���-=&YU&��ҁ��av���I�i4�s
5
+ >)����cC�٣Ŧ���{:-N.K#
6
+ ������2Dz^