rage-iodine 3.0.1 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/ext/iodine/iodine.c +1 -1
- data/ext/iodine/iodine_http.c +2 -8
- 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: 8d6094185497c824c1ce330f46e1868036b0a12834870de3cde2296a4b1e0d4d
|
4
|
+
data.tar.gz: 8423d80ee1b9aa21a18a263120059f2ceaa51a1e8c6eaf93d7823e68b59d8840
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c9c0a5b7524ba5c7d7992e9866cdfa191628ee0ee01a30002847dbb386589ffe1227ddab2b5419a6fea7a0cde3b1092866ff238cd62bb0f7b99b55f2b62e279
|
7
|
+
data.tar.gz: fc183a8c1445d7b936c5d03455cc1159378a34962a796d50b2993857561d43da39af58f8ba53072e9f72998674a93c1a59e035f7015e932b6c5c969569cd6d5e
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +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.3 (2023-01-04)
|
10
|
+
|
11
|
+
**Fix**: Stop closing Rack IO.
|
12
|
+
|
13
|
+
#### Change log v.3.0.2 (2023-12-18)
|
14
|
+
|
15
|
+
**Fix**: Correctly set timeout option.
|
16
|
+
**Fix**: Correctly set max_clients option.
|
17
|
+
|
9
18
|
#### Change log v.3.0.1 (2023-12-11)
|
10
19
|
|
11
20
|
**Fix**: Disable scheduling request fibers.
|
data/ext/iodine/iodine.c
CHANGED
@@ -826,7 +826,7 @@ FIO_FUNC iodine_connection_args_s iodine_connect_args(VALUE s, uint8_t is_srv) {
|
|
826
826
|
service = rb_sym2str(service);
|
827
827
|
service_str = IODINE_RSTRINFO(service);
|
828
828
|
}
|
829
|
-
if (timeout != Qnil && RB_TYPE_P(
|
829
|
+
if (timeout != Qnil && RB_TYPE_P(timeout, T_FIXNUM)) {
|
830
830
|
if (FIX2ULONG(timeout) > 255)
|
831
831
|
FIO_LOG_WARNING(":timeout value over 255 will be silently ignored.");
|
832
832
|
else
|
data/ext/iodine/iodine_http.c
CHANGED
@@ -687,8 +687,6 @@ static inline void *iodine_handle_request_in_GVL(void *handle_) {
|
|
687
687
|
tmp = IodineRackIO.create(h, env);
|
688
688
|
// pass env variable to handler
|
689
689
|
rbresponse = IodineCaller.call2((VALUE)h->udata, iodine_call_proc_id, 1, &env);
|
690
|
-
// close rack.io
|
691
|
-
IodineRackIO.close(tmp);
|
692
690
|
}
|
693
691
|
|
694
692
|
// test handler's return value
|
@@ -839,10 +837,6 @@ static inline void on_iodine_request_id_message(fio_msg_s *msg) {
|
|
839
837
|
http_resume((http_pause_handle_s *)msg->udata1, http_resume_deferred_request_handler, NULL);
|
840
838
|
}
|
841
839
|
|
842
|
-
static inline void http_close_deferred_request_handler(void *sub) {
|
843
|
-
fio_unsubscribe((subscription_s *)sub);
|
844
|
-
}
|
845
|
-
|
846
840
|
// when Ruby sends a message into the `fiber_id` channel means the fiber attached to
|
847
841
|
// to the `http_s h` var can be resumed
|
848
842
|
static inline void http_pause_request_handler(http_pause_handle_s *s) {
|
@@ -1031,7 +1025,7 @@ intptr_t iodine_http_listen(iodine_connection_args_s args){
|
|
1031
1025
|
.on_upgrade = on_rack_upgrade, .udata = (void *)args.handler,
|
1032
1026
|
.timeout = args.timeout, .ws_timeout = args.ping,
|
1033
1027
|
.ws_max_msg_size = args.max_msg, .max_header_size = args.max_headers,
|
1034
|
-
.on_finish = free_iodine_http, .log = args.log,
|
1028
|
+
.on_finish = free_iodine_http, .log = args.log, .max_clients = args.max_clients,
|
1035
1029
|
.max_body_size = args.max_body, .public_folder = args.public.data);
|
1036
1030
|
#else
|
1037
1031
|
intptr_t uuid = http_listen(
|
@@ -1039,7 +1033,7 @@ intptr_t iodine_http_listen(iodine_connection_args_s args){
|
|
1039
1033
|
.on_upgrade = on_rack_upgrade, .udata = (void *)args.handler,
|
1040
1034
|
.tls = args.tls, .timeout = args.timeout, .ws_timeout = args.ping,
|
1041
1035
|
.ws_max_msg_size = args.max_msg, .max_header_size = args.max_headers,
|
1042
|
-
.on_finish = free_iodine_http, .log = args.log,
|
1036
|
+
.on_finish = free_iodine_http, .log = args.log, .max_clients = args.max_clients,
|
1043
1037
|
.max_body_size = args.max_body, .public_folder = args.public.data);
|
1044
1038
|
#endif
|
1045
1039
|
if (uuid == -1)
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boaz Segev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|