rage-iodine 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76bd41c95f58dc8b78c6a748264393b3f7a1410ce348e5e2ebd6ac9b92cd5d75
4
- data.tar.gz: 9c3518807c7a919eece0fa0d83cdcf9556b3a6f97ff36dea44a365f7d8817b64
3
+ metadata.gz: d96bd1cba30c10ee53b362f816e5c59fc05e16daecce52d294fd7fcb2f7d3727
4
+ data.tar.gz: aca815f5c9b722980cd94bd176b492d83888133f02eaa84aa4d04cc5275443eb
5
5
  SHA512:
6
- metadata.gz: 9bab33c03cf6d8f84bc464170e521a344ff3e3af5f3decd303a0d38ff74e0629cf3478b297aa71e4fed41654d00758144ee3824edc7a17745106c4597ba5938b
7
- data.tar.gz: 38ba3c1a7b8e19f12f11b924c1e94a8feb1e59b0d99fe0050d98d1291aa41f9dcbe6b79dc83521511a8690f975c0b1a0c0aff14d8ae2e752ae862f9013491425
6
+ metadata.gz: 26ad4b2eb5ebf8e3bc0ae5985b706a5126e9cddda0052e0bed5669979f794f71c7c2039a2dc867e38d00d7b06cd2d5954340821e8a725a3895d1ccf1cbac4d79
7
+ data.tar.gz: e4a708af24640800d5e86c2b0acfaaaaaddbfaeba1c818c9028a607de63898cc5eed57a244d74e935636c260e57b7ee54c02b44e219c2dbffdbc1be574a292de
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ 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.2 (2023-12-18)
10
+
11
+ **Fix**: Correctly set timeout option.
12
+ **Fix**: Correctly set max_clients option.
13
+
9
14
  #### Change log v.3.0.1 (2023-12-11)
10
15
 
11
16
  **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
@@ -839,10 +839,6 @@ static inline void on_iodine_request_id_message(fio_msg_s *msg) {
839
839
  http_resume((http_pause_handle_s *)msg->udata1, http_resume_deferred_request_handler, NULL);
840
840
  }
841
841
 
842
- static inline void http_close_deferred_request_handler(void *sub) {
843
- fio_unsubscribe((subscription_s *)sub);
844
- }
845
-
846
842
  // when Ruby sends a message into the `fiber_id` channel means the fiber attached to
847
843
  // to the `http_s h` var can be resumed
848
844
  static inline void http_pause_request_handler(http_pause_handle_s *s) {
@@ -1031,7 +1027,7 @@ intptr_t iodine_http_listen(iodine_connection_args_s args){
1031
1027
  .on_upgrade = on_rack_upgrade, .udata = (void *)args.handler,
1032
1028
  .timeout = args.timeout, .ws_timeout = args.ping,
1033
1029
  .ws_max_msg_size = args.max_msg, .max_header_size = args.max_headers,
1034
- .on_finish = free_iodine_http, .log = args.log,
1030
+ .on_finish = free_iodine_http, .log = args.log, .max_clients = args.max_clients,
1035
1031
  .max_body_size = args.max_body, .public_folder = args.public.data);
1036
1032
  #else
1037
1033
  intptr_t uuid = http_listen(
@@ -1039,7 +1035,7 @@ intptr_t iodine_http_listen(iodine_connection_args_s args){
1039
1035
  .on_upgrade = on_rack_upgrade, .udata = (void *)args.handler,
1040
1036
  .tls = args.tls, .timeout = args.timeout, .ws_timeout = args.ping,
1041
1037
  .ws_max_msg_size = args.max_msg, .max_header_size = args.max_headers,
1042
- .on_finish = free_iodine_http, .log = args.log,
1038
+ .on_finish = free_iodine_http, .log = args.log, .max_clients = args.max_clients,
1043
1039
  .max_body_size = args.max_body, .public_folder = args.public.data);
1044
1040
  #endif
1045
1041
  if (uuid == -1)
@@ -1,3 +1,3 @@
1
1
  module Iodine
2
- VERSION = '3.0.1'.freeze
2
+ VERSION = '3.0.2'.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.2
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: 2023-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake