summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/lljsonrpcws.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2026-08-17 17:24:06 -0700
committerRider Linden <rider@lindenlab.com>2026-08-17 17:24:06 -0700
commit7af436c43d8bb7027c146e9a57bb19c3c89c5d3e (patch)
treecf2bfec73936bd7fc9d50db52209c3a2bea1778c /indra/llcorehttp/lljsonrpcws.cpp
parent5b2090ee2aca6436cc262c1cd20cb14f6cdb5e3e (diff)
Issue https://github.com/secondlife/sl-vscode-plugin/issues/98: Refactor message passing into unified format.
Diffstat (limited to 'indra/llcorehttp/lljsonrpcws.cpp')
-rw-r--r--indra/llcorehttp/lljsonrpcws.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/llcorehttp/lljsonrpcws.cpp b/indra/llcorehttp/lljsonrpcws.cpp
index 3a0d3d1f26..d6c5b0eb97 100644
--- a/indra/llcorehttp/lljsonrpcws.cpp
+++ b/indra/llcorehttp/lljsonrpcws.cpp
@@ -457,6 +457,24 @@ void LLJSONRPCConnection::sweepTimeouts()
}
}
+void LLJSONRPCConnection::testInjectPendingRequest(const std::string& id, F64 deadline, ResponseCallback callback)
+{
+ LLMutexLock lock(&mMutex);
+ mPendingRequests[id] = std::move(callback);
+ mPendingDeadlines.push({ deadline, id });
+}
+
+void LLJSONRPCConnection::testSweepTimeouts()
+{
+ sweepTimeouts();
+}
+
+size_t LLJSONRPCConnection::testPendingRequestCount() const
+{
+ LLMutexLock lock(&mMutex);
+ return mPendingRequests.size();
+}
+
LLSD LLJSONRPCConnection::generateId()
{
// Server-wide atomic counter for efficient unique ID generation.