ipfs-cluster/ipfsconn/ipfshttp
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
..
config_test.go Fix: repo/stat gets hammered on busy cluster peers 2022-02-01 01:34:17 +01:00
config.go Enable spell checking and fix spelling errors (using US locale) 2022-06-16 17:43:30 +02:00
ipfshttp_test.go Migrate from ipfs/ipfs-cluster to ipfs-cluster/ipfs-cluster 2022-06-16 17:43:30 +02:00
ipfshttp.go Fix bad context propagation / deadlocks 2022-09-26 19:35:55 +02:00