Sdk: dart:io HttpRequest won't receive data on windows 10 linux subsystem

Created on 10 Oct 2016  路  3Comments  路  Source: dart-lang/sdk

handleUpload(HttpRequest request) async {
  await for (List data in request) {
    print("received ${data.length}");
  }
  print("closed");
}

the above callback can only receive the first 16384 bytes in the request

it doesn't close , doesn't throw any error either, just hangs there.

same code works fine in regular ubuntu.

area-library library-io os-windows type-bug

Most helpful comment

The linked WSL bug was fixed a long time ago, but alas, this is still broken :(

I've opened https://github.com/microsoft/WSL/issues/4031 to see if we can make any progress.

All 3 comments

I think this issue is similar to https://github.com/Microsoft/BashOnWindows/issues/616 . This is probably not a dart issue

Thanks for the heads up.

The linked WSL bug was fixed a long time ago, but alas, this is still broken :(

I've opened https://github.com/microsoft/WSL/issues/4031 to see if we can make any progress.

Was this page helpful?
0 / 5 - 0 ratings