Skip to content

Delete timed-out RPC callbacks #3

Description

@romansavrulin

As for current version, I see that callbacks are removed from JsonRpcPrivate::m_callbacks only when response with the same ID is recieved. This may lead to memory leak, especially when remote party fails to process a request for some reason (network issues/data loss, reboot, logic error, etc...).

The solution can be to implement a timeout mechanism and event reporting (e.g. callback) to free JsonRpcPrivate::m_callbacks and report this case to caller.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions