Skip to content

embedded:io/socket/listener locks up Win simulator #1428

@cmidgley

Description

@cmidgley

Build environment: Windows
Moddable SDK version: 5.1.0
Target device: Win simulator.

Description
I'm trying to get embedded:network/http/server to work on win simulator, but it locks up (does not respond) the simulator process and requires it to be hard terminated. The examples for listener/httpserver and listener/listen exhibit the failure, indicating the bug is likely related to listener.

Both examples work on esp32, but for httpserver a trivial bug in examples/io/tcp/websocket/WebSocket.js on line 51 needs to be fixed to not throw an error (doesn't affect the crash issue). Changeif (href) to else if (href), as the prior check for object has identified this is an attachment and there is no href.

Steps to Reproduce

  1. Run examples/io/listener/listen or examples/io/listener/httpserver on windows simulator

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