[Server] Keep inbound request intact when queueing an outbound one (#486)
This commit is contained in:
parent
1bd7895b5f
commit
749c0353ef
1 changed files with 63 additions and 2 deletions
|
|
@ -303,9 +303,11 @@ class Protocol
|
|||
$notification = $result['notification'];
|
||||
$this->sendNotification($notification, $session);
|
||||
} elseif ('request' === $result['type']) {
|
||||
$request = $result['request'];
|
||||
// Keep $request untouched: it is the inbound request the catch
|
||||
// blocks below answer under, not this outbound one.
|
||||
$outboundRequest = $result['request'];
|
||||
$timeout = $result['timeout'] ?? 120;
|
||||
$this->sendRequest($request, $timeout, $session);
|
||||
$this->sendRequest($outboundRequest, $timeout, $session);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue