improve the performance for submit_request
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8578 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c4194b9f1d
commit
b14414b4f0
@ -90,7 +90,8 @@ function submit_request($req, $skipVerify){
|
||||
// Look for serverdone response
|
||||
$fullpattern = '/<xcatresponse>\s*<serverdone>\s*<\/serverdone>\s*<\/xcatresponse>/';
|
||||
$mixedpattern = '/<serverdone>\s*<\/serverdone>.*<\/xcatresponse>/';
|
||||
if(preg_match($mixedpattern,$response)) {
|
||||
$recentpattern = '/<\/xcatresponse>/';
|
||||
if(preg_match($recentpattern,$str) && preg_match($mixedpattern,$response)) {
|
||||
// Transaction is done,
|
||||
// Package up XML and return it
|
||||
// Remove the serverdone response and put an xcat tag around the rest
|
||||
|
Loading…
x
Reference in New Issue
Block a user