Skip to content

Loading isolates from localhost doesn't work with a proxy #15215

Closed
@nex3

Description

@nex3

For details, see issue #15161. Here's a simple script that loads an isolate from localhost:

    void main() {
      HttpServer.bind('localhost', 0).then((server) {
        server.listen((request) {
          request.response.write("fn() => print('in isolate');");
          request.response.close();
        });

        new File('/tmp/test.dart').writeAsStringSync('''
    import "http://${server.address.host}:${server.port}/file.dart";

    main() => fn();
    ''');

        Isolate.spawn(bufferedSpawn, '/tmp/test.dart');
      });
    }

    bufferedSpawn(uri) => Isolate.spawnUri(Uri.parse(uri), [], null);

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-iotype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions