Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

[ws] Cannot send data to peer(-22) on K64F and QEMU #1725

Closed
@qiaojingx

Description

@qiaojingx

Description

When running WebSocketServer.js and WebSocketServer4.js on K64F and qemu, data transmission is stuck and Error: Cannot send data to peer(-22) is printed after connect with node client for a short while. And, node client cannot connect with WebSocketServer again.

Test Code

WebSocketServer.js;
WebSocketServer4.js

Steps to Reproduction

  1. make JS=samples/websockets/WebSocketServer.js BOARD=frdm_k64f
  2. cp outdir/frdm_k64f/zephyr/zephyr.bin /media/<username>/MBED/
  3. Connect with PC via Ethernet cable.
  4. add router and address on Linux
    ip route add 2001:db8::/64 dev <ethX>
    ip addr add 2001:db8::2 dev <ethX>
  5. connect with node client:
    node samples/websockets/NodeWebSocketClient.js

Actual Result

data transmission is stuck and Error: Cannot send data to peer(-22) prints.
selection_022
Connection cannot be setup again.

Expected Result

No error.

Test Builds

Branch Commit Id Target Device Test Date Result
master 616c13f FRDM_K64F Dec 18, 2017 Fail
master 616c13f qemu Dec 18, 2017 Fail
master 1b970c8 FRDM_K64F Dec 11, 2017 Fail by #1670
master 1b970c8 qemu Dec 11, 2017 Pass

Additional Information

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions