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
Description
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
make JS=samples/websockets/WebSocketServer.js BOARD=frdm_k64f
cp outdir/frdm_k64f/zephyr/zephyr.bin /media/<username>/MBED/
- Connect with PC via Ethernet cable.
- add router and address on Linux
ip route add 2001:db8::/64 dev <ethX>
ip addr add 2001:db8::2 dev <ethX>
- connect with node client:
node samples/websockets/NodeWebSocketClient.js
Actual Result
data transmission is stuck and Error: Cannot send data to peer(-22)
prints.
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 |