Skip to content

Erroneous data tries to resend forever. #1

@ninjatill

Description

@ninjatill

I recently started using this library and in testing today I have some erroneous data that was published. I'm not sure what generated the erroneous data but I am using an RS232 barcode scanner to read barcodes. The erroneous data will sit in the queue and resend forever. This blocks any subsequent, good, data from ever getting published. I would recommend a way of tracking the number of retries and setting a limit to the number of retries. If the limit is reached, the bad data can be deleted from the queue.

I would also suggest an option on the constructor which would allow the queue to skip over the retry data and send subsequent messages in the queue. Then it could still retry the first message as needed within the retry timeout. This would cause the published messages to arrive out of order but in my case that is perfectly acceptable.

In this image, that erroneous data is trying to resend every 30 seconds. I tried to scan a new barcode but it goes into the queue and never gets published because the erroneous data is blocking any new publishes.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions