Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsonrpc: Fix Python implementation of inactivity logic.
When a JSON-RPC session receives bytes, or when it successfully sends queued bytes, then it should count that as activity. However, the code here was reversed, in that it used the wrong check in each place. That is, when it tried to receive data, it would check whether data had just been sent, and when it tried to send data, it would check whether data had just been received. Neither one makes sense and doesn't work. Bug #13214. Reported-by: Luca Giraudo <[email protected]> CC: James Schmidt <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information