mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4184 updated the socat in password server for handling parallel requests in parallel vm deployments
This commit is contained in:
parent
5b41be3567
commit
8e7d8ba0b6
|
|
@ -20,7 +20,7 @@
|
|||
addr=$1;
|
||||
while [ "$ENABLED" == "1" ]
|
||||
do
|
||||
socat -lf /var/log/cloud.log TCP4-LISTEN:8080,reuseaddr,crnl,bind=$addr SYSTEM:"/opt/cloud/bin/serve_password.sh \"\$SOCAT_PEERADDR\""
|
||||
socat -lf /var/log/cloud.log TCP4-LISTEN:8080,reuseaddr,fork,crnl,bind=$addr SYSTEM:"/opt/cloud/bin/serve_password.sh \"\$SOCAT_PEERADDR\""
|
||||
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ do
|
|||
break
|
||||
fi
|
||||
|
||||
request=$(echo $input | grep "DomU_Request:" | cut -d: -f2 | sed 's/^[ \t]*//')
|
||||
request=$(echo "$input" | grep "DomU_Request:" | cut -d: -f2 | sed 's/^[ \t]*//')
|
||||
|
||||
if [ "$request" != "" ]
|
||||
then
|
||||
|
|
|
|||
Loading…
Reference in New Issue