rage-iodine 3.0.4 → 3.0.5

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: 827c54292c5797ef0e8a744953c7285d7bde14baa42ccd8b12c79d6eb5a6bc33
4
- data.tar.gz: 97f0854e71a859bd6dc7f1c8c46ca3e82c2ddcf92b8b23e2aa77eadb9797c7d3
3
+ metadata.gz: 46e68c191deee2280af13f14e89cd2cc724b8829f25af0dc975d9190fdb46a9a
4
+ data.tar.gz: 77f083659e27efc029c94dabd45b06049644757bf843ac41d19ac7f09214f581
5
5
  SHA512:
6
- metadata.gz: 8f521569cd668eb25312a2bcb453492c85bf2d09467509574f2ac756f389063d08b8299e7f9306ce3ebcced115e728d4c9862576d8a868e0dd5588bc0def69f4
7
- data.tar.gz: a5f90318671553fb05ff6d48b6d1c831bc825892b6f4b2b3d4c80199dc30a8b621e7478c4c4aa3204c8c9f72c7d87273a0683887b91b09ec41cd8e0c2a79c32f
6
+ metadata.gz: b3adbeeaa4a1c7c83ed5e5ec6ac6bbd1b353ed8144cd05186ed3d22707d1a7df182336451ee767d5f30db7075dbde1611e0a94bb50e8bdd7ee262b85d536eefc
7
+ data.tar.gz: 42228e64d9c7dfdd3736847ce17fc9ee781905b117f9955be62977de1afc1ed7dae4b23a29396f4eb3f8c3c25c7e7090e995dab111887d51c93646b3a19bcff3
data/CHANGELOG.md CHANGED
@@ -6,11 +6,15 @@ Please notice that this change log contains changes for upcoming releases as wel
6
6
 
7
7
  ## Changes:
8
8
 
9
- #### Change log v.3.0.4 (2023-01-09)
9
+ #### Change log v.3.0.5 (2024-03-13)
10
+
11
+ **Fix**: Fix the "incompatible pointer" compilation warnings.
12
+
13
+ #### Change log v.3.0.4 (2024-01-09)
10
14
 
11
15
  **Fix**: Delete temp files.
12
16
 
13
- #### Change log v.3.0.3 (2023-01-04)
17
+ #### Change log v.3.0.3 (2024-01-04)
14
18
 
15
19
  **Fix**: Stop closing Rack IO.
16
20
 
data/ext/iodine/fio.c CHANGED
@@ -285,6 +285,7 @@ static void deferred_on_shutdown(void *arg, void *arg2);
285
285
  static void deferred_on_ready(void *arg, void *arg2);
286
286
  static void deferred_on_data(void *uuid, void *arg2);
287
287
  static void deferred_ping(void *arg, void *arg2);
288
+ static void deferred_force_close_in_poll(void *uuid, void *arg2);
288
289
 
289
290
  /* *****************************************************************************
290
291
  Section Start Marker
@@ -531,6 +532,10 @@ static inline void fio_force_close_in_poll(intptr_t uuid) {
531
532
  fio_force_close(uuid);
532
533
  }
533
534
 
535
+ static void deferred_force_close_in_poll(void *uuid, void *arg2) {
536
+ fio_force_close_in_poll((intptr_t)uuid);
537
+ }
538
+
534
539
  /* *****************************************************************************
535
540
  Protocol Locking and UUID validation
536
541
  ***************************************************************************** */
@@ -2065,7 +2070,7 @@ static size_t fio_poll(void) {
2065
2070
  (void *)fd2uuid(events[i].data.fd), NULL);
2066
2071
  }
2067
2072
  if (events[i].events & (EPOLLHUP | EPOLLRDHUP)) {
2068
- fio_defer_push_task(fio_force_close_in_poll,
2073
+ fio_defer_push_task(deferred_force_close_in_poll,
2069
2074
  (void *)fd2uuid(events[i].data.fd), NULL);
2070
2075
  }
2071
2076
  }
@@ -2202,7 +2207,7 @@ static size_t fio_poll(void) {
2202
2207
  NULL);
2203
2208
  }
2204
2209
  if (events[i].flags & (EV_EOF | EV_ERROR)) {
2205
- fio_defer_push_task(fio_force_close_in_poll,
2210
+ fio_defer_push_task(deferred_force_close_in_poll,
2206
2211
  (void *)fd2uuid(events[i].udata), NULL);
2207
2212
  }
2208
2213
  }
data/ext/iodine/http.c CHANGED
@@ -1949,10 +1949,11 @@ static void add_to_params(VALUE params, char *key, size_t key_len, VALUE value)
1949
1949
  }
1950
1950
  }
1951
1951
 
1952
- static inline void cleanup_temp_file(void *r_path) {
1953
- char *path = StringValueCStr(r_path);
1954
- IodineStore.remove((VALUE)r_path);
1955
- unlink(path);
1952
+ static inline void cleanup_temp_file(void *path) {
1953
+ VALUE r_path = (VALUE)path;
1954
+ IodineStore.remove(r_path);
1955
+ char *c_path = StringValueCStr(r_path);
1956
+ unlink(c_path);
1956
1957
  }
1957
1958
 
1958
1959
  static VALUE create_temp_file(http_mime_parser_s *parser, char **path) {
@@ -1,3 +1,3 @@
1
1
  module Iodine
2
- VERSION = '3.0.4'.freeze
2
+ VERSION = '3.0.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rage-iodine
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake