JSON commands are usually not using the withTimeout parameter. This lets the timeout internally be set to 1 hour as for sync of large databases the response times can be excessively long. Only the heartbeat JSON calls which are used to determine, if Kodi server is still connected, use withTimeout (typically the timeout is 3 sec).
This fact can be used to avoid sending JSON requests while the server is not connected. This avoids undesired queueing of JSON requests while the server is temporarily not connected.
Summary for release notes
Improvement: Do not queue up JSON commands while disconnected to Kodi
Description
Resolves an issue reported in this forum post.
JSON commands are usually not using the
withTimeout
parameter. This lets the timeout internally be set to 1 hour as for sync of large databases the response times can be excessively long. Only the heartbeat JSON calls which are used to determine, if Kodi server is still connected, usewithTimeout
(typically the timeout is 3 sec).This fact can be used to avoid sending JSON requests while the server is not connected. This avoids undesired queueing of JSON requests while the server is temporarily not connected.
Summary for release notes
Improvement: Do not queue up JSON commands while disconnected to Kodi