jerryscript-project / iotjs

Platform for Internet of Things with JavaScript http://www.iotjs.net
Other
2.58k stars 440 forks source link

Connect when the server ready #1963

Open lygstate opened 3 years ago

lygstate commented 3 years ago

==3059== Memcheck, a memory error detector ==3059== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==3059== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==3059== Command: /root/work_space/iotjs/build/x86_64-linux/debug/bin/iotjs /root/work_space/iotjs/test/run_pass/test_net_8.js ==3059== AssertionError: {"actual":"1","expected":"12","operator":"=="} AssertionError: {"actual":1,"expected":0,"operator":"=="} ==3059== ==3059== HEAP SUMMARY: ==3059== in use at exit: 0 bytes in 0 blocks ==3059== total heap usage: 131 allocs, 131 frees, 314,345 bytes allocated ==3059==

According to this, the server on close event triggered multiple times by close function

wait all four connection to end