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

This reverts commit 293f2194c6fe119e71e3c053c3894748a44f9e7e.

Doing it a better way

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12392 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-04-29 00:13:35 +00:00
parent 6df0c51504
commit 75d37c0a6f

View File

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