Skip to content
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

Fix dmsghttp datarace #1033

Merged
merged 3 commits into from
Dec 30, 2021
Merged

Fix dmsghttp datarace #1033

merged 3 commits into from
Dec 30, 2021

Conversation

ersonp
Copy link
Contributor

@ersonp ersonp commented Dec 20, 2021

Did you run make format && make check?
yes

Fixes #dmsg-137

Changes:

  • Update getHTTPClient logic

How to test this PR:

  1. Checkout #dmsg-138
  2. Uncomment replace github.com/skycoin/dmsg => ../dmsg in go.mod in skywire and run make dep
  3. Build the visor with the go build -race -o ./ ./cmd/skywire-visor
  4. Gen config ./skywire-cli config gen -dirt
  5. Restart the visor multiple times (10-20 times) and see if you get the datarace

Needs:
#dmsg-138

This commit contains changes to accomodate the changes made to dmsgdirect for solving the datarace.

 Now the PostEntry() func of the dmsg client no longer adds DelegatedServers to the client entry so we get the servers via AvailableServers() and add them to the client before passing the entry to PostEntry().
@ersonp ersonp mentioned this pull request Dec 20, 2021
@jdknives jdknives merged commit a603cf5 into skycoin:develop Dec 30, 2021
@ersonp ersonp deleted the fix/dmsgdirect branch April 11, 2022 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants