async-io 1.34.3 → 1.35.0

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: c46c543da8514fafc78e12bbbcd6fd5abe30ce4cfd649fcb475a0410fb37179a
4
- data.tar.gz: 8318595b652b6a7f272c97b978efab37d9e7a83e9764fa4fec692a3df965f506
3
+ metadata.gz: 495e2f2af45b75929c63402c89baa306fc4ca6069460d4a4cbb8dd508b246af2
4
+ data.tar.gz: ae9064e6b1ae9add38405fb99e2182ef801a42f9506389b80ddc403f4ac49f26
5
5
  SHA512:
6
- metadata.gz: 5bbab075ddb84a43c1c84b02e67f01ac2a948ce20b405ce91665b1d2a0865aea89cc8d410aeb52bcb66cef753b8853bdda3c890d792d9df610c937978fb5e954
7
- data.tar.gz: 94465c8f599fc42acd819016785059dbee83e7f37325a685f7c6b1132877366b7f92ef0cba81c765e65dd2d7bb3864c3c5e5f2819b6e9d0f5bb0a4e820ea5874
6
+ metadata.gz: 9c21ebeb778f2df413e9fbacfcf0b2211e9fafc2e69b401634a47492a10e9b26aa7685f57d4b170312cc78291d79e21365f73bf9e6258c46341c8d124ce33ad8
7
+ data.tar.gz: 63718c445bd187e9868498324c97f8179bd6ce187c4040a0da56c09a8ce6c8111d5d6a23f8e3476c5754bea48aeca2a7282f5f1b9274eb1b302d0ccf46ecaf6b
@@ -89,11 +89,12 @@ module Async
89
89
  end
90
90
 
91
91
  def close_write
92
- self.shutdown(Socket::SHUT_WR)
92
+ # Invokes SSL_shutdown, which sends a close_notify message to the peer.
93
+ @io.__send__(:stop)
93
94
  end
94
95
 
95
96
  def close_read
96
- self.shutdown(Socket::SHUT_RD)
97
+ @io.to_io.shutdown(Socket::SHUT_RD)
97
98
  end
98
99
 
99
100
  def shutdown(how)
@@ -119,7 +120,7 @@ module Async
119
120
  self.class.new(@server.dup, @context)
120
121
  end
121
122
 
122
- def_delegators :@server, :local_address, :setsockopt, :getsockopt, :close, :close_on_exec=, :reactor=, :timeout, :timeout=
123
+ def_delegators :@server, :local_address, :setsockopt, :getsockopt, :close, :close_on_exec=, :reactor=, :timeout, :timeout=, :to_io
123
124
 
124
125
  attr :server
125
126
  attr :context
@@ -135,7 +136,7 @@ module Async
135
136
 
136
137
  return wrapper, address unless block_given?
137
138
 
138
- task.async do
139
+ task.async do |task|
139
140
  task.annotate "accepting secure connection #{address.inspect}"
140
141
 
141
142
  begin
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Async
24
24
  module IO
25
- VERSION = "1.34.3"
25
+ VERSION = "1.35.0"
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.34.3
4
+ version: 1.35.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2023-01-30 00:00:00.000000000 Z
19
+ date: 2023-06-05 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: async
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  - !ruby/object:Gem::Version
171
171
  version: '0'
172
172
  requirements: []
173
- rubygems_version: 3.4.1
173
+ rubygems_version: 3.4.7
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: Provides support for asynchonous TCP, UDP, UNIX and SSL sockets.