NETCONF internal: Enable RFC 6242 chunked encoding

This commit is contained in:
Olof hagsand 2024-02-27 13:22:50 +01:00
parent db11b5ef99
commit e4834b9896
5 changed files with 25 additions and 11 deletions

View file

@ -74,6 +74,16 @@ EOF
new "hello session-id 2"
expecteof "$clixon_util_socket -a $family -s $sock -D $DBG" 0 "<hello $DEFAULTONLY/>" "<hello $DEFAULTONLY><session-id>4</session-id></hello>"
if [ $family = UNIX -a -n "$netcat" ]; then
new "Unix socket garbage test"
echo "garbage" | netcat -U $sock
new "Check backend alive"
pid=$(pgrep -u root -f clixon_backend)
if [ -z "$pid" ]; then
err "backend pid" "backend dead"
fi
fi
if [ $BE -ne 0 ]; then
new "Kill backend"
# Check if premature kill