[Server] Keep inbound request intact when queueing an outbound one (#486)

This commit is contained in:
Christopher Hertel 2026-09-05 01:36:39 +02:00 • committed by GitHub
commit 749c0353ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}
}