-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
context: Always call returned cancel funcs #878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I guess 3e6effc cancels in the wrong place.
|
@cryptix yeah im doing it the hard way (proc) |
still faults with same race. Need some insight here - maybe |
not sure - i rebased on master, is it in there? |
#877 landed-- you can rebase now |
35c0ac0
to
a744f31
Compare
@jbenet perfect, all green! 😄. not sure if i can move the |
@cryptix this LGTM so far. also not sure about moving the |
a744f31
to
aa55eeb
Compare
I reseted to the commit before - race tests passed, looks like #877 fixed this one. |
@cryptix yay :) |
commands should last as long as the user keeps the cmd going
context: Always call returned cancel funcs
@cryptix @whyrusleeping though i merged-- pls CR! |
LGTM |
This PR follows up on #822.
ctx, _ := context.WithTimeout(context.TODO(), time.Second*5)
ctx, _ := context.WithTimeout(ctx, kPingTimeout)
ctx, _ := context.WithTimeout(ctx, kPingTimeout)
ctx, _ := context.WithTimeout(nd.Context(), time.Second*30)
ctx, _ := context.WithTimeout(context.TODO(), timeout)
child, _ := context.WithTimeout(ctx, providerRequestTimeout)
hasBlockCtx, _ := context.WithTimeout(ctx, hasBlockTimeout)
ctx, _ := context.WithTimeout(context.TODO(), time.Minute)
timectx, _ := context.WithDeadline(ctx, time.Now().Add(time.Second*10))
ctxT, _ := context.WithTimeout(ctx, s.dialT)
ctx, _ := context.WithTimeout(context.Background(), time.Second*60)
ctx, _ := context.WithTimeout(dht.Context(), time.Second*5)
ctx, _ := context.WithTimeout(context.TODO(), time.Second*60)