diff options
| author | Rider Linden <rider@lindenlab.com> | 2026-08-19 13:53:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-19 13:53:16 -0700 |
| commit | f26e024aee3957193a3bd7ffdd614c004c243eaf (patch) | |
| tree | 30c12980f211cb46ce4ea21c09f9b0bdfec3e230 /indra/llcorehttp/lljsonrpcws.cpp | |
| parent | 305bebbdb3b16b10b6011b5b3b5d63ee7c7334be (diff) | |
| parent | ece8b732d963afe257b4ba7396c9deb340dbf47c (diff) | |
Merge pull request #6156 from secondlife/rider/runtime_msging
Rider/runtime msging
Diffstat (limited to 'indra/llcorehttp/lljsonrpcws.cpp')
| -rw-r--r-- | indra/llcorehttp/lljsonrpcws.cpp | 18 |
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. |
