wasmerio / winterjs

Winter is coming... ❄️

Home Page:https://winterjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wasmer Winter server hangs when calling fetch tests

dynamite-bud opened this issue · comments

Description

The wasmer-winter server hangs when calling fetch tests.

Steps to reproduce

Start the local server

wasmer run wasmer-tests/winter-fetch-tests --net --env PORT=3000

The above will start a server for serving the fetch requests

Running the fetch tests server

You need to start a wasmer/winterjs server using the following 11-fetch.js file.

Please place an event listener at the end of this file:

addEventListener("fetch", (fetchEvent) => {
  fetchEvent.respondWith(handleRequest(fetchEvent.request));
});
wasmer run wasmer/winterjs --net --mapdir /tests:. -- /tests/11-fetch.js --watch

The above will start a server on 127.0.0.1:8080. When making a cURL request to the server.

curl 127.0.0.1:8080

The above server goes in a wait state and doesn't return a response for a long time.

@dynamite-bud this should be fixed in 0.1.10. Can you verify please?