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

toxcore continuously disconnects from the network and tries to connect again #440

Closed
zetok opened this issue Jan 16, 2017 · 10 comments
Closed
Labels
bug Bug fix for the user, not a fix to a build script P1 High priority
Milestone

Comments

@zetok
Copy link

zetok commented Jan 16, 2017

Reproducible with higher number of contacts. Initially I could reproduce only on a single profile that had >150 contacts, but it also became a problem even with lower number of contacts (~40-50). Although profile with lower number of contacts doesn't disconnect as often, it still is frequent enough to render tox unusable.

Reproducible when upload bandwidth is ~saturated.

After toxcore disconnects, it tries to connect again, attempting to send a large amount of stuff. This only worsens the network conditions when upload is already saturated.

I didn't have the issue on older (irungentoo's) toxcore.

@zetok zetok added the bug Bug fix for the user, not a fix to a build script label Jan 16, 2017
@zetok
Copy link
Author

zetok commented Jan 16, 2017

Btw, I think that it's quite big issue, given that after years of using tox I'm now unable to use it.

@zoff99
Copy link

zoff99 commented Jan 16, 2017

it sound like this is sort of the same direction as allowing longer periods without keep alive for mobile devices.

@iphydf iphydf added the P1 High priority label Jan 16, 2017
@iphydf
Copy link
Member

iphydf commented Jan 16, 2017

Does this require those 40-50 friends to be online?

@iphydf
Copy link
Member

iphydf commented Jan 16, 2017

How often does it happen? Is there a way to reliably reproduce this?

@zetok
Copy link
Author

zetok commented Jan 22, 2017

Does this require those 40-50 friends to be online?

No. There are usually only ~10% of friends online for both friendlist sizes.

How often does it happen?

Almost all the time. The time period between "connecting" to the DHT and disconnecting is usually less than 30s. Sometimes it takes a minute or 2 to disconnect.

Is there a way to reliably reproduce this?

It happens when upload bandwidth is saturated.


Regarding "bisect", I've started with toxcore 755f084, issue is still present, although to a lesser degree.

On old toxcore time required to reconnect to the DHT is usually less than 30s, often less than 10s.

New toxcore (v0.1.4) requires >30-60s, often minutes.

On old toxcore, there are contacts that are shown as online, and I can just use it although it disconnects fairly frequently from DHT.

On new toxcore almost all contacts are shown as offline even though they are online; it's not usable.

@GrayHatter
Copy link

@zetok are you able to install and run wireshark as root?

@zetok
Copy link
Author

zetok commented Jan 25, 2017

@zetok are you able to install and run wireshark as root?

Yes.

@zetok
Copy link
Author

zetok commented Mar 1, 2017

update: turning UDP off ~works around the issue.

TCP-only mode still suffers from contacts being shown as offline (#231) though.

@zetok
Copy link
Author

zetok commented Apr 30, 2017

update: turning UDP off helps only to lessen the problem, in the end it just takes longer for the problem to occur.

@iphydf iphydf added this to the v0.2.x milestone Jul 16, 2018
@iphydf
Copy link
Member

iphydf commented Feb 4, 2022

Can't reproduce this right now. If this is still an issue, please reopen.

@iphydf iphydf closed this as completed Feb 4, 2022
@iphydf iphydf modified the milestones: v0.2.x, meta Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fix for the user, not a fix to a build script P1 High priority
Projects
None yet
Development

No branches or pull requests

4 participants