test.sh: OpenSSL s_server now neglect TCPs half close feature

This commit is contained in:
Gerhard Rieger 2020-10-29 13:16:14 +01:00
parent c4d7718bca
commit c6c8ff784c
3 changed files with 7 additions and 2 deletions

View file

@ -3,6 +3,9 @@ Testing:
test.sh now produces a list of tests that could not be performed for test.sh now produces a list of tests that could not be performed for
any reason. This helps to analyse these cases. any reason. This helps to analyse these cases.
OpenSSL s_server appearently started to neglect TCPs half close feature.
Test OPENSSL_TCP4 has been changed to tolerate this.
####################### V 1.7.3.4: ####################### V 1.7.3.4:
Corrections: Corrections:

View file

@ -1 +1 @@
"1.7.3.4" "1.7.3.4+"

View file

@ -4145,7 +4145,9 @@ eval "$CMD2 2>\"${te}1\" &"
pid=$! # background process id pid=$! # background process id
# this might timeout when openssl opens tcp46 port like " :::$PORT" # this might timeout when openssl opens tcp46 port like " :::$PORT"
waittcp4port $PORT waittcp4port $PORT
echo "$da" |$CMD >$tf 2>"${te}2" #echo "$da" |$CMD >$tf 2>"${te}2"
#note: with about OpenSSL 1.1 s_server lost the half close feature, thus:
(echo "$da"; sleep 0.1) |$CMD >$tf 2>"${te}2"
if ! echo "$da" |diff - "$tf" >"$tdiff"; then if ! echo "$da" |diff - "$tf" >"$tdiff"; then
$PRINTF "$FAILED: $TRACE $SOCAT:\n" $PRINTF "$FAILED: $TRACE $SOCAT:\n"
echo "$CMD2 &" echo "$CMD2 &"