You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a possible/likely situation where the Hub class can freeze.
Context
utils/cpp/Comm::Hub
Process
Continually send data to port that the hub is attached to.
Run hub.poll()
The hub will freeze as the bridge attempts to generate a very large queue of messages.
Expected result
The hub should only process a set number of messages per call to hub.poll(). This will allow other operations to be done between updates.
Current result
The hub will not process any messages until the data stream has paused or stopped.
Possible Fix
Add a limit to the number of messages a bridge will return on a call to bridge.receive(). This should be a part of the Bridge interface. Preferably is would be passed to the bridge.receive() function.
The text was updated successfully, but these errors were encountered:
Bug report
There is a possible/likely situation where the
Hub
class can freeze.Context
utils/cpp/Comm::Hub
Process
hub.poll()
Expected result
The hub should only process a set number of messages per call to
hub.poll()
. This will allow other operations to be done between updates.Current result
The hub will not process any messages until the data stream has paused or stopped.
Possible Fix
Add a limit to the number of messages a bridge will return on a call to
bridge.receive()
. This should be a part of theBridge
interface. Preferably is would be passed to thebridge.receive()
function.The text was updated successfully, but these errors were encountered: