dart-lang / http

A composable API for making HTTP requests in Dart.
https://pub.dev/packages/http
BSD 3-Clause "New" or "Revised" License
1.03k stars 358 forks source link

`FrameSizeException` when requesting non-TLS hosts #1383

Open AlexV525 opened 6 months ago

AlexV525 commented 6 months ago

Steps to reproduce

  1. Clone https://github.com/cfug/dio and enter the directory.
  2. melos bs.
  3. Run the test with plugins/http2_adapter/test/test_suite_test.dart.
AlexV525 commented 6 months ago

When increasing the max frame size to 1 << 24, another exception was thrown: FrameSizeException: Incoming byte stream ended with incomplete frame.

AlexV525 commented 6 months ago

This typically happens when the destination is trying to redirect from a non-TLS to a TLS URL.

AlexV525 commented 5 months ago

@mosuem