Skip to content

ongoing fetch will cause cpu 100% #145

@denghongcai

Description

@denghongcai

run code below in MacOS arm64. build wasmedge-quickjs from latest main branch, and use wasmedge 0.14.1

import { fetch } from 'http';

async function test_fetch() {
  try {
    print('test_fetch start');
    let r = await fetch('https://httpbin.org/delay/10');
    print('test_fetch\n', await r.text());
  } catch (e) {
    print(e);
  }
}

test_fetch();

during the fetch progress, seems there is a infinity loop
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions