提交 c61f6826 authored 作者: grindhold's avatar grindhold

bugfix: prevented endless loop in sendmsg

FS-8667 - some commands do not send a response with the type
command/reply but send api/response instead. check for this type,
too in order to prevent $client->comand() from never returning
to the users script.
上级 010db753
......@@ -145,7 +145,8 @@ sub sendmsg($$$) {
for(;;) {
$e = $self->readhash(undef);
last if $e->{socketerror} or $e->{'content-type'} eq 'command/reply';
last if $e->{socketerror} or $e->{'content-type'} eq 'command/reply'
or $e->{'content-type'} eq 'api/response';
push @{$self->{events}}, $e;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论