rage-iodine 5.1.0 → 5.2.0

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: 5780b0bd483cbceaee368b8416a0fc6cdfc7fcf155f67eaa5715a3748790e032
4
- data.tar.gz: 3191054adbffcac948151b9cb1367033819b3639ffc027bc052313bb216a7d20
3
+ metadata.gz: 7be7852385079072038ac11985d101e7b05b4a179d9cca4d9714b5259b2e7976
4
+ data.tar.gz: 89cfe5691372d27ea1cc2093fa9f47e11b86011013b453a23c90371e7849e4c5
5
5
  SHA512:
6
- metadata.gz: 6e07a2923d319c9e561216101dd59a31a13bb2a85f370e89d40718ed99fd1293990ecf033bd8ca23ccb65e1ea5395500529503a59d208a01c4d96a36cab90ee4
7
- data.tar.gz: 2b57180029bf202fb8b825304b96e7f4307220576920c05e052b79ed2292d3780437ba7056876222bf33f3d120692794b182bab816f6c3ffedda2d3d987e3b38
6
+ metadata.gz: ffadced84f5141ee01debbb951cf7313d9c1f8fda94db7cec4512c717dd6f71c43d0f5e6375c3a736cc1f5c36820db530397c01196aac9e727c0ee47c95ed832
7
+ data.tar.gz: 7cdf3c7c92c855dcb6f07b8063134f6c537f63e4f28bdab4a7b6e58911969c4f069a3d52f3d74ded830bd49a57033bc2fa6e33c77b5ffa1cbdda9d90c7b7307c
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ Please notice that this change log contains changes for upcoming releases as wel
6
6
 
7
7
  ## Changes:
8
8
 
9
+ #### Change log v.5.2.0 (2026-03-10)
10
+
11
+ **Update**: Skip connection validity check when closing SSE connections
12
+
13
+ **Update**: Stop setting content-type header for SSE requests
14
+
15
+ **Update**: Set `x-accel-buffering` for SSE requests
16
+
9
17
  #### Change log v.5.1.0 (2026-03-04)
10
18
 
11
19
  **Update**: Verify SSE connection are open before calling the protocol object
data/ext/iodine/http1.c CHANGED
@@ -465,11 +465,12 @@ static int http1_upgrade2sse(http_s *h, http_sse_s *sse) {
465
465
  const intptr_t uuid = handle2pr(h)->p.uuid;
466
466
  /* send response */
467
467
  h->status = 200;
468
- http_set_header(h, HTTP_HEADER_CONTENT_TYPE, fiobj_dup(HTTP_HVALUE_SSE_MIME));
469
468
  http_set_header(h, HTTP_HEADER_CACHE_CONTROL,
470
469
  fiobj_dup(HTTP_HVALUE_NO_CACHE));
471
470
  http_set_header(h, HTTP_HEADER_CONTENT_ENCODING,
472
471
  fiobj_str_new("identity", 8));
472
+ http_set_header(h, fiobj_str_new("x-accel-buffering", 17),
473
+ fiobj_str_new("no", 2));
473
474
  handle2pr(h)->stop = 1;
474
475
  htt1p_finish(h); /* avoid the enforced content length in http_finish */
475
476
 
@@ -227,10 +227,6 @@ static void iodine_sse_on_shutdown(http_sse_s *sse) {
227
227
  Qnil);
228
228
  }
229
229
  static void iodine_sse_on_close(http_sse_s *sse) {
230
- if (http_sse2uuid(sse) == -1) {
231
- // Connection was already closed, skip silently
232
- return;
233
- }
234
230
  iodine_connection_fire_event((VALUE)sse->udata, IODINE_CONNECTION_ON_CLOSE,
235
231
  Qnil);
236
232
  }
@@ -1,3 +1,3 @@
1
1
  module Iodine
2
- VERSION = '5.1.0'.freeze
2
+ VERSION = '5.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rage-iodine
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-03-04 00:00:00.000000000 Z
10
+ date: 2026-03-10 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake