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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76bd41c95f58dc8b78c6a748264393b3f7a1410ce348e5e2ebd6ac9b92cd5d75
4
- data.tar.gz: 9c3518807c7a919eece0fa0d83cdcf9556b3a6f97ff36dea44a365f7d8817b64
3
+ metadata.gz: 8d6094185497c824c1ce330f46e1868036b0a12834870de3cde2296a4b1e0d4d
4
+ data.tar.gz: 8423d80ee1b9aa21a18a263120059f2ceaa51a1e8c6eaf93d7823e68b59d8840
5
5
  SHA512:
6
- metadata.gz: 9bab33c03cf6d8f84bc464170e521a344ff3e3af5f3decd303a0d38ff74e0629cf3478b297aa71e4fed41654d00758144ee3824edc7a17745106c4597ba5938b
7
- data.tar.gz: 38ba3c1a7b8e19f12f11b924c1e94a8feb1e59b0d99fe0050d98d1291aa41f9dcbe6b79dc83521511a8690f975c0b1a0c0aff14d8ae2e752ae862f9013491425
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(ping, T_FIXNUM)) {
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
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Iodine
2
- VERSION = '3.0.1'.freeze
2
+ VERSION = '3.0.3'.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.1
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: 2023-12-11 00:00:00.000000000 Z
11
+ date: 2024-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake