When sending single data pack by command echo "hello" | nc 192.0.2.1 4242 to TCPEchoServ4.js, tcpserver will prints error (Cannot send data to peer(-9)) sometimes.
Verified with commit 1b970c8. This issue is not reproduced on Arduino101. A similar issue is found on K64F and qemu. Tracking by #1713 .
Close this one.
Description
When sending single data pack by command
echo "hello" | nc 192.0.2.1 4242
to TCPEchoServ4.js, tcpserver will prints error (Cannot send data to peer(-9)
) sometimes.Test Code
TCPEchoServ4.js; TCPEchoServ4_DHCP.js;
Steps to Reproduction
make JS=samples/TCPEchoServ4.js FORCE=zjs_net_l2_enc28j60.json ROM=256
make dfu
ip route add 192.0.2.0 dev <ethX>
ip addr add 192.0.2.2 dev <ethX>
echo "hello" | nc 192.0.2.1 4242
Actual Result
TCP4:
Expected Result
Message should keep the same. like:
Test Builds
Additional Information