Skip to content

Detecting end of command response #8

@coffeebite

Description

@coffeebite

The regex to match the end of command output is /\n.\n$/ (inside send_command method in Gearman::Server).
This fails when the command response is simply "." (without quotes, of course).
E.g. The output of the "status" command when there are no workers and no jobs is simply "."

The correct regex should probably be just /.\n$/.

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