Skip to content

Incorrect Handling of -z Parameter During Load Testing #536

@0x9bb1

Description

@0x9bb1

Description:

When using the -z parameter to set the duration of the load test, the tool currently closes connections before responding to all sent requests at the end of the specified time. The expected behavior is to handle and complete all outstanding requests before closing the connections once the time limit is reached.

Steps to Reproduce:

Run a load test using the -z parameter to set a specific duration (e.g., -z 1m).
Observe the behavior at the end of the specified duration.

Expected Behavior:

At the end of the specified time, the tool should complete processing all sent requests and then close the connections.

Actual Behavior:

The tool closes the connections immediately at the end of the specified time, without waiting to respond to all sent requests.

Environment:

oha 1.4.5

Attachments:

Error distribution: [10] aborted due to deadline

Additional Information:

This behavior affects the accuracy and reliability of the load testing results as it prematurely closes connections, leading to incomplete request processing.

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