Skip to content

Releases: dartondox/dox-http-native

3.0.3

Choose a tag to compare

@github-actions github-actions released this 01 Nov 14:50
b4c9ed9

New

  • Configurable keep-alive idle timeout. A connection with no new request closes after idleTimeout. The default stays 30 seconds.

    Behind a load balancer, set it longer than the balancer's idle timeout. For example, AWS ALB keeps connections for 60 seconds, so use 65. Otherwise the server may close a connection the balancer still uses, and clients get 502.

    NativeHttpServer server = await NativeHttpServer.bind(
      3000,
      idleTimeout: Duration(seconds: 65),
    );

Fixes (with autoCompress on)

  • Answers that could be gzipped now send Vary: Accept-Encoding. A shared cache no longer gives a gzip body to a client that can not read it.
  • Accept-Encoding: gzip;q=0 now means "no gzip".
  • Files that are compressed already (images, audio, video, zip, woff and so on) are no longer gzipped again. This saves CPU. image/svg+xml is still gzipped.

Good to know

  • Native ABI 9. The build hook downloads the new library for you.
  • The idleTimeout field now shows the value given to bind. Setting it later still has no effect, and it stays deprecated.

Full list: the CHANGELOG.

Ready-built dox_http_native libraries. See SHA256SUMS.

v3.0.2

Choose a tag to compare

@github-actions github-actions released this 01 Nov 02:37
f873278

New: fast AES-GCM

  • AesGcm.seal and AesGcm.open: AES-256-GCM in Rust, with the AES instructions of the CPU.
  • dox_core 3.0.1 uses it for encrypted cookies, sessions and CSRF. One cookie now takes about 1–2 µs. It took about 100 µs in pure Dart.
  • The output is the same as before, so cookies made by older versions still open.

Other

  • Native ABI 8. The build hook downloads the matching library by itself.
  • Fix for contributors: the build hook now rebuilds the library when any Rust file changes, not only lib.rs.

Ready-built libraries for Linux (x64, arm64), macOS (x64, arm64) and Windows (x64). See SHA256SUMS.

v3.0.1

Choose a tag to compare

@github-actions github-actions released this 27 Oct 02:35
0ea2ccf

Ready-built dox_http_native libraries. See SHA256SUMS.

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 09:50
ed8911d

Ready-built dox_http_native libraries. See SHA256SUMS.

v3.0.0-alpha.8

v3.0.0-alpha.8 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 25 Oct 04:35
e4b5ac5

Ready-built dox_http_native libraries. See SHA256SUMS.

v3.0.0-alpha.7

v3.0.0-alpha.7 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 25 Oct 02:21

Ready-built dox_http_native libraries. See SHA256SUMS.