io-event 1.1.1 → 1.1.3

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: 336b8a299fe9de0466ef4453f9cde52f1820ec94c10b30033b9d79f30e2ee7a5
4
- data.tar.gz: 6c32fd8b43caeecbf400e19f1cc33b7c8fd3fd70d9db3e08e622fb596ba185b3
3
+ metadata.gz: ec111c6ab035a84dedec9e0c8885ccfa23edd8624647d8dc706b818a833a589f
4
+ data.tar.gz: '09c50dc090655197aa67dc8b350c6b7d416aaab40c66f98f97c802e005af9efd'
5
5
  SHA512:
6
- metadata.gz: ed7d828a65a678598559cb55738dd0832cd6633d5ea15d743962a0b44210ae5e68c4704015f75cc2294f64b30eeff57332a8f5993a6ad91ffffe7204edbf7ca6
7
- data.tar.gz: 22343d4aed5285e1a0c2435d7f3f93fa9ff086c67dce8cf27616ad599df81622eb936ba7fcf8a7acf48d505f98834aca8a963f50895bcf0d28596fd26687e36f
6
+ metadata.gz: 830a051bdabe8d8883732e9be4f107528e934d1bb673abfefd7a047d9b2090cd7521b05f852938d667d36a0e678c0b82625ccd7c8cd0f677ff453810fcc53308
7
+ data.tar.gz: dc99321f39efb5371c9e4fa50d948b0f514e095499d21a48f77e8170b1aeaddbc13fc922be1ddce3a379becbe7abf6d3533cbafbad4a604b97cf3cbe6d434e99
checksums.yaml.gz.sig CHANGED
Binary file
data/ext/extconf.rb CHANGED
@@ -24,6 +24,8 @@
24
24
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
  # THE SOFTWARE.
26
26
 
27
+ return if RUBY_DESCRIPTION =~ /jruby/
28
+
27
29
  require 'mkmf'
28
30
 
29
31
  gem_name = File.basename(__dir__)
@@ -326,6 +326,7 @@ VALUE io_wait_rescue(VALUE _arguments, VALUE exception) {
326
326
  if (DEBUG) fprintf(stderr, "io_wait_rescue:io_uring_prep_poll_remove(%p)\n", (void*)arguments->fiber);
327
327
 
328
328
  io_uring_prep_poll_remove(sqe, (uintptr_t)arguments->fiber);
329
+ io_uring_sqe_set_data(sqe, NULL);
329
330
  io_uring_submit_now(data);
330
331
 
331
332
  rb_exc_raise(exception);
@@ -707,6 +708,8 @@ VALUE IO_Event_Selector_URing_wakeup(VALUE self) {
707
708
  }
708
709
 
709
710
  io_uring_prep_nop(sqe);
711
+ // If you don't set this line, the SQE will eventually be recycled and have valid user data which can cause odd behaviour:
712
+ io_uring_sqe_set_data(sqe, NULL);
710
713
  io_uring_submit(&data->ring);
711
714
 
712
715
  return Qtrue;
@@ -5,6 +5,6 @@
5
5
 
6
6
  class IO
7
7
  module Event
8
- VERSION = "1.1.1"
8
+ VERSION = "1.1.3"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: io-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -41,7 +41,7 @@ cert_chain:
41
41
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
42
42
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
43
43
  -----END CERTIFICATE-----
44
- date: 2022-10-14 00:00:00.000000000 Z
44
+ date: 2022-12-04 00:00:00.000000000 Z
45
45
  dependencies:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: bake
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- �Bz����岛K<���*:�+LU8t��q��v"�|F,'�bf�I��=;5�c�j���y^X�[����1Kz��@��M��t�*.5#�~wpdH_P~8e{ b1�����+_�f?ճ�V �U��UU죨���H��0�`‘�t(0N61$��_]B�`s֐!UmY^��0��
1
+ (��Z������J���^_k��q��/lӔ�r~j�<���t���FSh�֍H�����+� B
2
+ �s��<��6Ԣrt� ���o�ͣVTC���K�uL�ch��;��{t�_�zG�h$t�8"��I��v��E����X�` �م���L4 ��.�ョC�N%Ysx�Zu ��|�$�0�p����i�kԳ�ao�'��~�e�1��:�T��H �ǒ����Ύ(�a[�|�GIOH۔�^���C�@O�9t�A1���+@8���)�����6J