predixy icon indicating copy to clipboard operation
predixy copied to clipboard

loop run the pubsub tcl test will core

Open WastonYuan opened this issue 5 years ago • 0 comments

if loop run the tcl pubusb test

#!/bin/bash
SUM=0
while true
do
    tclsh tests/test_helper.tcl --host 127.0.0.1 --port 7777 --single unit/pubsub --auth pass
    SUM=$((SUM + 1))
    echo ${SUM}
done

netstat -anp | grep predixy will see the tcp link grow fast and core while run 1000+ times

the reason is the connectConnectList break; because of ConnectConnection and privateConnectConnection add to the same list so the List will break while the ConnectionConnection free happened which lead to the ConnectConnection behind that can not be reach

WastonYuan avatar Jun 15 '20 08:06 WastonYuan