Fix loop after request done, can_read will happily return true even if the client has closed... TODO: perhaps check for client closed explicitly

if we ever feel like doing multiple request scheme

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16566 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-06-06 17:48:47 +00:00
parent f79b2850ad
commit 7e9a9d09f3

View File

@ -2025,7 +2025,7 @@ sub service_connection {
$line = "";
}
$req = get_request($sock,$globalencode,$line);
unless ($req) { next; }
unless ($req) { last; }
{ #TODO: find closing brace..
#first change peername on 'becomeuser' tag if present and valid
if (defined $req->{becomeuser}) {