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.

[tcp] Cannot connect to TCPEchoServ4_DHCP.js again by netcat(echo) on K64F. #1828

Closed
@qiaojingx

Description

@qiaojingx

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

TCPEchoServ4_DHCP.js;

Steps to Reproduction

  1. make JS=samples/TCPEchoServ4_DHCP.js BOARD=frdm_k64f
  2. cp outdir/frdm_k64f/zephyr.bin /media/<username>/MBED/
  3. connect FRDM_K64F and PC to a router which assigns a DHCP address
  4. 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
  5. repeat step 4.

Actual Result

selection_008

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 .

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions