Skip to content

dubbo: wrong request id is set in local reply  #18623

@wbpcode

Description

@wbpcode

The dubbo proxy will set a wrong reqeust id to the local reply make the consumer timeout.

void ActiveMessage::sendLocalReply(const DubboFilters::DirectResponse& response, bool end_stream) {
ASSERT(metadata_);
metadata_->setRequestId(request_id_);
parent_.sendLocalReply(*metadata_, response, end_stream);
if (end_stream) {
return;
}
local_response_sent_ = true;
}

The request_id_ is always -1 and will override the valid request id in the metadata.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions