Skip to content

TcpOutboundGateway below high concurrency request not match response  #8599

@slmouse

Description

@slmouse

In what version(s) of Spring Integration are you seeing this issue?

5.4.13

Describe the bug

A clear and concise description of what the bug is.
below high concurrency TcpOutboundGateway class have Cannot correlate response - no pending reply for exception
It seems other thread removed AsyncReply from pendingReplies with connectionId,because the all thread use the same connectionId, so connectionId maybe not used as a unique identifier in pendingReplies sence.

I tried to change uuid instance connectionId put pendingReplies ,but when put uuid to header in method handleRequestMessage,
the header in method onMessage nonexistent uuid,

To Reproduce

high concurrency call

Expected behavior

below high concurrency request not match response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions