ipfs-cluster/api
Hector Sanjuan 21855c3130 Fix bad context propagation / deadlocks
We are propagating the wrong context (mostly from the Cluster top-level
methods). This makes that request cancellations (and cancellations of the
associated contexts) are not propagated to many methods, and can result in
deadlocks when an operation that is holding a lock is not aborted.

This affects for example the operation tracker. Getting all operations from
the tracker relies on someone reading from the out channel, or on the context
being cancelled. When a request is aborted in the middle of the response, and
the context is not cancelled, everything that wants to list operations would
become deadlocked, including operations that need write locks like
TrackNewOperation.

This fixes it.
2022-09-26 19:35:55 +02:00
..
common api: return errors on stream response requests with 0 items 2022-09-15 16:40:34 +02:00
ipfsproxy ipfsproxy: forward block/put and dag/put with pin=false 2022-09-09 16:41:58 +02:00
pb Fix #1547: Store pin metadata in a sorted array 2022-06-16 17:43:29 +02:00
pinsvcapi Dependency upgrades (#1755) 2022-09-06 16:57:17 +02:00
rest Fix bad context propagation / deadlocks 2022-09-26 19:35:55 +02:00
add_test.go Fix #1358: Set RawLeaves to true when unset and CidVersion=1 (#1359) 2021-05-19 23:56:30 +02:00
add.go Dependency upgrades (#1755) 2022-09-06 16:57:17 +02:00
types_test.go Dependency upgrades (#1755) 2022-09-06 16:57:17 +02:00
types.go Dependency upgrades (#1755) 2022-09-06 16:57:17 +02:00
util.go Dependency upgrades (#1755) 2022-09-06 16:57:17 +02:00