Skip to content

Issue with Handling Rapid Sequential Requests #7

Open
@GreenWizard2015

Description

@GreenWizard2015

Description:
The system occasionally fails to process rapid consecutive requests from the UI, particularly evident when rapidly clicking the pouring button or sending update and command requests almost simultaneously. This issue becomes critical if the 'stop' command request gets blocked, leading to uncontrolled operation.

Potential Solutions:

  1. Implement a queue system for incoming requests to ensure sequential processing.
  2. Modify connection handling to allow processing of multiple requests simultaneously.
  3. Explore using lower-level parts of the networking library for better concurrent client management.
  4. As a temporary fix, ensure the UI repeatedly sends the 'stop' command until the server acknowledges. Implemented in this PR and fix this issue on client side.

Code Location:
The request processing code can be found in the RemoteControl.cpp file, specifically within the process() method.

Relevant Links:

  • Discussion on handling multiple TCP clients on Arduino: Arduino Forum
  • Challenges with multiple client connections on Arduino WiFi shield: Arduino Forum

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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