mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-22 11:10:24 +00:00
Merge pull request #742 from chenglch/plugin_wait_issue
Fix issue #729: xcat do not print message under heavy load scenario
This commit is contained in:
@@ -1897,6 +1897,12 @@ sub plugin_command {
|
||||
$xcatresponses{xcatresponse}=[];
|
||||
}
|
||||
}
|
||||
if ($check_fds->count > 0) {
|
||||
my %resp_timeout = ('errorcode'=>[1],
|
||||
'data'=>["Warning: Process terminated due to IO timeout, the following output may not complete.\n"]);
|
||||
push @{$xcatresponses{xcatresponse}},\%resp_timeout;
|
||||
relay_fds($check_fds,$xcatresponses{xcatresponse});
|
||||
}
|
||||
if (scalar(@{$xcatresponses{xcatresponse}})) {
|
||||
send_response(\%xcatresponses,$sock);
|
||||
$xcatresponses{xcatresponse}=[];
|
||||
|
Reference in New Issue
Block a user