-
Notifications
You must be signed in to change notification settings - Fork 291
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
Add ability to disable UDP hole punching #262
Conversation
78dc994
to
f9afe4b
Compare
closes #254 |
9e1c546
to
e973629
Compare
Review status: 0 of 14 files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
e973629
to
f083107
Compare
Review status: 0 of 14 files reviewed at latest revision, 15 unresolved discussions, some commit checks failed. auto_tests/dht_test.c, line 306 at r1 (raw file):
2 is not a member of net. You meant auto_tests/dht_test.c, line 443 at r1 (raw file):
Did this run through astyle? other/bootstrap_daemon/src/tox-bootstrapd.c, line 246 at r1 (raw file):
You can include tox.h and use the symbolic constant for NORMAL here and in other places where you added a literal 2. toxcore/DHT.c, line 2093 at r2 (raw file):
I suggest using toxcore/DHT.h, line 241 at r1 (raw file):
Align with other members or remove alignment altogether. toxcore/tox.api.h, line 367 at r1 (raw file):
No need to capitalise. I suggest: toxcore/tox.api.h, line 371 at r1 (raw file):
toxcore/tox.api.h, line 376 at r1 (raw file):
"Aggressively" toxcore/tox.api.h, line 377 at r1 (raw file):
"interfere" toxcore/tox.api.h, line 379 at r1 (raw file):
See above. toxcore/tox.api.h, line 381 at r1 (raw file):
AGGRESSIVE toxcore/tox.api.h, line 527 at r1 (raw file):
Is this only DHT? I thought this port is also used for all other communications ( toxcore/tox.api.h, line 548 at r1 (raw file):
I suggest: "How aggressively toxcore will try to [...]". On the first read I got a bit confused. If others disagree, fix the typo: "aggressive". toxcore/tox.api.h, line 551 at r1 (raw file):
"Care must be taken" However, this sentence is too fancy for technical documentation. I don't think you need to tell people to take care if you tell them the effects of low/high levels. They will know what the effects are, so they will know that they need to take care. toxcore/tox.api.h, line 553 at r1 (raw file):
"DoS" Comments from Reviewable |
Reviewed 13 of 14 files at r1, 1 of 1 files at r2. Comments from Reviewable |
Review status: all files reviewed at latest revision, 15 unresolved discussions, some commit checks failed. auto_tests/dht_test.c, line 306 at r1 (raw file):
|
f083107
to
6bcf76f
Compare
Reviewed 6 of 6 files at r3. auto_tests/dht_test.c, line 306 at r3 (raw file):
Tests can include tox.h. Use it to get the NORMAL constant here (and in other places). toxcore/DHT.c, line 2093 at r3 (raw file):
I'd like a short statement about what is to do here. Given that toxcore/DHT.c, line 2094 at r3 (raw file):
Isn't this check a bit too late? Do check whether this suggestion makes sense. I haven't checked it thoroughly. toxcore/tox.api.h, line 551 at r3 (raw file):
I think some sentence merge conflict happened here. toxcore/tox.api.h, line 553 at r3 (raw file):
"its" toxcore/tox.api.h, line 554 at r3 (raw file):
"Setting it too low could [...]". Comments from Reviewable |
Review status: all files reviewed at latest revision, 7 unresolved discussions, some commit checks failed. auto_tests/dht_test.c, line 306 at r3 (raw file):
|
6bcf76f
to
95b4637
Compare
This pull is reliably eating toxcore profiles. in the uTox development branch. Can someone else confirm? Also, backup any profile you care about before trying |
So, I assume this won't get merged because of profile eating? Comments from Reviewable |
Reviewed 1 of 2 files at r5. Comments from Reviewable |
Pushing to v0.0.5 because this exceeds the scope of the bug, which was to add an option to disable hole punching, while this PR introduces aggressiveness levels and breaks the API by renaming fields in Tox_Options. |
2c38660
to
414d9a0
Compare
I reverted a lot of the changes, this pull in simply an addition of the bool, hole_punching enabled, disabled Review status: 1 of 13 files reviewed at latest revision, 9 unresolved discussions. toxcore/tox.api.h, line 527 at r1 (raw file):
|
414d9a0
to
b3eca74
Compare
Review status: 1 of 12 files reviewed at latest revision, 10 unresolved discussions. toxcore/tox.api.h, line 524 at r6 (raw file):
It's not clear what the bool is about just from the bool name. Shouldn't it be renamed to something else? Comments from Reviewable |
Reviewed 11 of 13 files at r6. toxcore/tox.api.h, line 522 at r6 (raw file):
Should we be more explicit about how the true/false maps to "enables"/"disables"? Reading this I could guess that setting toxcore/tox.api.h, line 524 at r6 (raw file):
|
Review status: all files reviewed at latest revision, 4 unresolved discussions. toxcore/tox.api.h, line 522 at r6 (raw file):
Replace comma with period. toxcore/tox.api.h, line 524 at r6 (raw file):
|
b3eca74
to
e4c3e4d
Compare
Review status: 8 of 12 files reviewed at latest revision, 4 unresolved discussions. toxcore/tox.api.h, line 522 at r6 (raw file): Previously, iphydf wrote…> Replace comma with period.toxcore/tox.api.h, line 522 at r6 (raw file): Previously, nurupo wrote…> Should we be more explicit about how the true/false maps to "enables"/"disables"? Reading this I could guess that setting `nat_level = true` would enable hole-punching, but I don't like to guess.toxcore/tox.api.h, line 524 at r6 (raw file): Previously, iphydf wrote…> For now, we're sure, but anyway this bool is going away very soon, when it becomes part of the "nat traversal technologies" enum by @Ansa89.Comments from Reviewable |
0e4b7c7
to
84f290e
Compare
Reviewed 7 of 13 files at r6, 2 of 4 files at r7, 2 of 2 files at r8. Comments from Reviewable |
84f290e
to
cb65d8c
Compare
Review status: 10 of 12 files reviewed at latest revision, 3 unresolved discussions, some commit checks broke. toxcore/Messenger.c, line 1937 at r9 (raw file):
hole_punching_enabled Comments from Reviewable |
cb65d8c
to
6b6c5db
Compare
6b6c5db
to
ad517eb
Compare
Do we need some kind of auto-test for this new functionality? Reviewed 2 of 2 files at r8, 2 of 2 files at r9, 1 of 1 files at r10. Comments from Reviewable |
I don't think it's possible to auto-test it. |
This change is