Skip to content

Correctly limit pending requests #3

@CTurt

Description

@CTurt

Failing for me due to accumulating large number of pending requests (over 30,000) and then printing libusb error.

Root cause is logic error in HandleEvents:

void HandleEvents(gscomms * g, long timeout_ms, int max_pending_writes) {

void HandleEvents(gscomms * g, long timeout_ms, int max_pending_writes) {
    if (g->writes_pending > max_pending_writes) {

Changing this if to be a while makes pending requests stablize at 256, slows down progress bar, but actually succeeds eventually.

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