Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Enhancement] Avoid unnecessary waiting when a response is successfully returned #8261

Copy link
Copy link
@3424672656

Description

@3424672656
Issue body actions

Before Creating the Enhancement Request

  • I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

image
public Message request(final Message msg, long timeout) Internal logic
image
image
image

Use countDownLatch to implement synchronization logic, but the thread is forced to wake up only after a timeout, and to wait until the timeout returns after a successful response,Therefore, after a successful response, the countDown() function should be called to wake up the thread to return, and do not do ineffective sleep

Motivation

Avoid unnecessary waiting when a response is successfully returned

Describe the Solution You'd Like

after a successful response, the countDown() function should be called to wake up the thread to return, and do not do ineffective sleep

Describe Alternatives You've Considered

null

Additional Context

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.