Closed yhzs8 closed 1 year ago
Update: I printed out the target.Error
when the issue happens on this line
and it seems the error is originated here
So I will try to remove the targets before adding them back again when the gRPC connection is restored.
Update: the proposal is not working, I did it in the following order:
tunnel.NewClient()
with ts
set to the targetsclient.DeleteTarget()
with those targetsclient.Start()
client.Error()
for normal cases, step 2 would have failed (there is no target to delete) and it was picked up in 4 and cancelled my workflow. Since all target operations are asynchronous and there is no way to distinguish the error thrown at step 2 and 3 so I cannot swallow the error for step 2 only.
Next proposal: using unique target.ID
for subsequent target registrations.
Version:
v0.0.0-20220524190229-125331eabdde
I got this from time to time during the scenario:
tunnel.NewClient()
,client.Register()
andclient.Start()
immediately. (duringtunnel.NewClient()
I am sending in targets ints map[Target]struct{}
so they would be added to the server duringclient.Register()
)Anything I can try to do before
client.Register()
andclient.Start()
to get rid of this error?