Fix problem where unauthorized users could indefinitely hold an xcatd slot open so long as they stayed connected

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12379 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-04-27 18:36:52 +00:00
parent bb244787a7
commit 5d38b453ef

View File

@ -1688,9 +1688,10 @@ sub service_connection {
my $request;
my $req=undef;
alarm(15);
while (<$sock>) {
my $line;
while (alarm (15) and $line = <$sock>) {
alarm(0);
$request .= $_;
$request .= $line;
#$req = eval { XMLin($request, ForceArray => [ 'attribute' , 'attributepair' ]) };
if (m/<\/xcatrequest>/) {
$req = eval { XMLin($request, SuppressEmpty=>undef,ForceArray=>1) };