Skip to content

Bot exceeds concurrency = 1 and accepts multiple simultaneous challenges #1163

@GyatsoYT

Description

@GyatsoYT

Even with concurrency = 1 set in the configuration, the bot still accepts multiple challenges at the same time. This seems to be a concurrency-limit bug in lichess-bot-bridge.

When several bots challenge almost simultaneously, the bot accepts 2–3 challenges concurrently. In the screenshot example, it accepted games from SybBot, FataliiBot, and turkjs while it was already playing one game. Since my hardware cannot run multiple engine instances, two of those games were lost on time.

Image

This issue happens frequently:

The bot starts a single game.

Multiple new challenges arrive close together.

concurrency = 1 is ignored and all challenges are accepted.

Engine overloads and crashes.

Bot cannot reconnect to the earlier games and loses them on time.

Configuration:
concurrency = 1

Expected behavior:
When running with concurrency = 1, every incoming challenge beyond the first should be ignored or declined until the current game finishes.

Actual behavior:
If challenges arrive within a tight time window, the bot accepts all of them, bypassing the concurrency limit.

This is causing repeated timeouts and rating loss. A strict enforcement of the concurrency limit is urgently needed, especially for users running on limited hardware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions