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 +4 -4
- data/CHANGELOG.md +6 -2
- data/ext/iodine/fio.c +7 -2
- data/ext/iodine/http.c +5 -4
- data/lib/iodine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46e68c191deee2280af13f14e89cd2cc724b8829f25af0dc975d9190fdb46a9a
|
4
|
+
data.tar.gz: 77f083659e27efc029c94dabd45b06049644757bf843ac41d19ac7f09214f581
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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 (
|
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(
|
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(
|
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 *
|
1953
|
-
|
1954
|
-
IodineStore.remove(
|
1955
|
-
|
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) {
|
data/lib/iodine/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2024-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|