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.
[tcp] Cannot connect to TCPEchoServ4_DHCP.js again by netcat(echo) on K64F. #1828
Closed
Description
Description
When sending single data pack by command echo "hello" | nc <IP address> 4242
to TCPEchoServ4_DHCP.js, connection only can be established first time. No message is print when connect second time. 570:(ERROR) Socket closed early with another in process
is outputted when the connect third, forth ... time.
If connect TCPEchoServ4_DHCP.js by nc <IP address> 4242
at the beginning, then disconnect. This issue will not reproduced anymore.
Test Code
Steps to Reproduction
make JS=samples/TCPEchoServ4_DHCP.js BOARD=frdm_k64f
cp outdir/frdm_k64f/zephyr.bin /media/<username>/MBED/
- connect FRDM_K64F and PC to a router which assigns a DHCP address
- send single data pack by netcat: (if connect with
nc <IP address> 4242
first, this issue won't occur.)
echo "hello" | nc <IP address> 4242
- repeat step 4.
Actual Result
Expected Result
Connection can be established each time.
Test Builds
Branch | Commit Id | Target Device | Test Date | Result |
---|---|---|---|---|
zjs-0.5 | ab30ce7 - 4cf09c5 | FRDM-K64F | Feb 06, 2018 | Fail |
zjs-0.5 | 33112bb | FRDM-K64F | Feb 06, 2018 | Pass |
master | ede4509 | FRDM-K64F | Feb 08, 2018 | Fail |
Additional Information
This issue is probably caused by #1815 .