Skip to content

http2_adapter 2.9.0

Choose a tag to compare

@cfug-dev cfug-dev released this 04 Sep 02:45
· 2 commits to main since this release
Immutable release. Only release title and notes can be modified.

What's new

  • Expose supportedProtocols on ConnectionManager (defaults to ['h2'],
    fully backwards-compatible). Setting it to ['h2', 'http/1.1'] fixes
    fallbackAdapter silently never firing against RFC 7301-compliant servers
    that abort the TLS handshake with no_application_protocol when only h2
    is advertised.
  • Fix socket leak: when DioH2NotSupportedException is thrown after a
    successful TLS handshake (server selected http/1.1 instead of h2),
    the SecureSocket is now explicitly destroyed before routing to
    fallbackAdapter, rather than being abandoned.
  • Deprecate the misspelled ConnectionManager.handshakeTimout parameter in
    favor of the correctly spelled handshakeTimeout; the deprecated alias
    keeps working and is scheduled for removal in 3.0.0.