deislabs/wasi-experimental-http

Limit number of concurrent requests a module can send

Closed this issue · 1 comments

There should be a way that the number of concurrent requests can be set when configuring the HTTP library, similar to how the list of allowed hosts is configured.

What should be default if no such limit is set?

Indeed. This is more of an implementation detail than something in the specification, though.

The limit should probably be a parameter of Http::new().

As for the default, I have no opinion. Maybe 8 to mimic what web browsers do?