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:
parent
f79b2850ad
commit
7e9a9d09f3
@ -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}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user