Fix spinning on zero length search request (lp:1743321; from 3.14)
This commit is contained in:
1 parent
3bf4e95de8
commit
0556439fa7
1 file changed
+4
@@ -665,6 +665,10 @@ caStatus casDGClient::processDG ()
|
||||
if ( status != S_cas_success ) {
|
||||
break;
|
||||
}
|
||||
|
||||
if ( this->in.bytesPresent () > 0 && dgInBytesConsumed == 0 ) {
|
||||
this->in.removeMsg ( this->in.bytesPresent() );
|
||||
}
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user