Skip to content

RpcClient has no reset functionality #458

@tiborb

Description

@tiborb

The RpcClient needs a reset functionality to recover from missing server replies or other amqp expections.

In the following scenario the client will not return the result for the second call.

Solution: Add a reset function to manually recover from failed RPC calls and use the client again.

RpcClient:php

public function reset() { $this->replies = array(); $this->requests = 0; } 

Note that in Symfony the client service is declared once and getting a new instance is not possible by practical means.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions