Skip to content

libtracker-sparql: Handle query cancellation on TrackerEndpointDBus

Carlos Garnacho requested to merge wip/carlosg/bus-query-cancellation into master

Since the cursor contents are handed via a pipe FD, detect the situation where the other end of the pipe gets closed (say, client died or cancelled the operation) and cancel the DBus service side operation as well.

This avoids these operations from finishing to completion if they are going nowhere. Now that each pending query request gets its own cancellable, ensure these are also cancelled on TrackerEndpointDBus finalization.

Fixes: #264 (closed)

Merge request reports