Fix problem where Client could attempt to coalesce data from server that doesn't cleanly cleave an xcat response
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12472 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f9bb1c2c79
commit
638e9179a7
@ -256,7 +256,7 @@ if (ref($request) eq 'HASH') { # the request is an array, not pure XML
|
||||
}
|
||||
$newdata=1;
|
||||
$response .= $line;
|
||||
if ($line =~ m/<\/xcatresponse>/) {
|
||||
if ($line =~ m/<\/xcatresponse>\s*\z/) {
|
||||
if ($line =~ /serverdone/) { $coalescenow=1; } #if serverdone was detected, hint at coalesce code to flush things out now
|
||||
#this means that coalesce can be triggered by stray words in the output prematurely, but that's harmless
|
||||
#replace ESC with xxxxESCxxx because XMLin cannot handle it
|
||||
|
Loading…
Reference in New Issue
Block a user