Skip to content

Commit

Permalink
fix dubbo启动脚本中nc命令不稳定 apache#936
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyHZM committed Jan 29, 2019
1 parent 7b529a3 commit c0b11ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ while [ $COUNT -lt 1 ]; do
sleep 1
if [ -n "$SERVER_PORT" ]; then
if [ "$SERVER_PROTOCOL" == "dubbo" ]; then
COUNT=`echo status | nc -i 1 $SERVER_HOST $SERVER_PORT | grep -c OK`
COUNT=`(sleep 1; echo "^M"; sleep 1; echo status; sleep 1)| telnet $SERVER_HOST $SERVER_PORT | grep -c OK`
else
COUNT=`netstat -an | grep $SERVER_PORT | wc -l`
fi
Expand Down

0 comments on commit c0b11ae

Please sign in to comment.