这是indexloc提供的服务,不要输入任何密码
Skip to content

Allow the Zig SDK to return arbitrarily big responses #218

@ereslibre

Description

@ereslibre

Describe the bug

At this time, the Zig SDK contains some hardcoded values when preparing the response object for Wasm Workers Server.

We should be able to return arbitrarily big responses from a Zig worker, and so, the Zig SDK should use allocation in order to prepare these responses, regardless of how big the response is.

Reproduction steps

  1. Create a Zig worker following the documentation
  2. Make it return a relatively big response
  3. See crash due to memory limits

Expected behavior

An answer is produced normally, and returned by Wasm Workers Server back to the user.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions