You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
I wish I could use this library but because it does not support go's context.Context, I can't reliably use it. This library performs operations over a network and it is common practice to use a context so that network operations can be cancelled by the context, either by manual cancellation or deadline. The go http package supports contexts with functions like http.NewRequestWithContext.
Even if I use contexts and goroutines to disregard the response of a shell request when a context times out for example, there is no way to stop the execution of a function. If I were to be downloading content from ipfs, it would continue downloading despite the context cancelling, and the program continuing running.
The only workaround I can see is manually setting a timeout on the http client, but this is bad practice and not predictable.
The text was updated successfully, but these errors were encountered:
@benny-conn we are in the process of unifying our RPC client story (ipfs/kubo#9124), so it is unlikely we will break/change API here until that issue is resolved (closing this, let's continue there).
I wish I could use this library but because it does not support go's
context.Context
, I can't reliably use it. This library performs operations over a network and it is common practice to use a context so that network operations can be cancelled by the context, either by manual cancellation or deadline. The gohttp
package supports contexts with functions likehttp.NewRequestWithContext
.Even if I use contexts and goroutines to disregard the response of a shell request when a context times out for example, there is no way to stop the execution of a function. If I were to be downloading content from ipfs, it would continue downloading despite the context cancelling, and the program continuing running.
The only workaround I can see is manually setting a timeout on the http client, but this is bad practice and not predictable.
The text was updated successfully, but these errors were encountered: