coreapi
not respecting context timeouts
#9532
Labels
effort/hours
Estimated to take one or several hours
exp/intermediate
Prior experience is likely helpful
kind/bug
A bug in existing code (including security flaws)
P2
Medium: Good to have, but can wait until someone steps up
Checklist
Installation method
built from source
Version
Config
No response
Description
When using the IPFS HTTP RPC (
/api/v0
) client, we set timeouts in the context in the normal go way. But when using the coreapi it doesn’t look like timeouts are respected in the same way. For example, when you do a stat with the coreapi, (I belieive) it goes directly to the filesystem to do that stat, therefore there’s no delay and no timeout applied. Is that correct?In that case, I guess there should still be a timeout somewhere because even when you’re using coreapi it might just take too long to get an object over IPFS. So the question is, where should that timeout now reside?
Context: this test is failing because no timeout is evaluated (and therefore it doesn’t timeout). Previously, when using the HTTP client, the stat would timeout when you set the timeout to 0.
cc: @Jorropo
The text was updated successfully, but these errors were encountered: