vocatus

V1.2.91 --> V1.3.87 Upgrade -- Significantly Reduced # Of Peers Will Connect

Recommended Posts

First I want to say thanks to the Sync dev team for your work on Sync - it is a fantastic project and very helpful to myself and a lot of others. So, thank-you.

 

Moving right along...  ;)

 

I distribute and maintain a repository of packages for PDQ Deploy (example). I've previously asked about getting the hard-coded 50-peer limit raised, removed or converted to a user-configurable variable (here).

 

I recently upgraded BT Sync on the repo server from v1.2.91 to v1.3.89, and have noticed it now connects with a significantly reduced number of peers. Previously it would quickly hit the 50-peer limit; under the new version it struggles to keep around 20 peers connected. Because of this I was forced to revert back to v1.2.91 until it can be resolved.

 

Was the peer limit reduced or any major protocol changes introduced in v1.3.89?

Edit: changed version to v1.3.89 (not .87)

Share this post


Link to post
Share on other sites

@vocatus,

 

Thanks for the feedback!

 

The peer limit was not reduced in 1.3, it stayed the same - 50 peers. However, there were indeed major protocol changes in 1.3 - now BTSync contacts tracker server over TCP, and prefers TCP in LAN. Could you please collect the logs from your peer so we can check what is going wrong? Please make sure to set log_size to ~500 as you'll have huge amount of records in a log due to numerous peers.

Share this post


Link to post
Share on other sites

Hi RomanZ,

 

Thanks for the quick response.

 

When I started Sync and waited a couple minutes to collect logs, it crashed. :-P I submitted the crash report via the in-app pop up.

 

Log is attached below.

sync.zip

Share this post


Link to post
Share on other sites

Just a quick update, the latest version (v1.3.89) continually crashes for me on Windows XP SP3. When it does stay running, it only maintains about 20 connected peers across two shares. When I roll back to v1.2.91, it works fine and suddenly connects to about 30-40 peers per folder share. Currently still running v1.2.91 because I have hosts needing updates, but I can roll back to v1.3.89 for more log collection or testing if you need.

Share this post


Link to post
Share on other sites

Hi, vocatus, can you reproduce this crash again and send me crash dump? (if crash was handled by Windows it can be found in C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson).

Share this post


Link to post
Share on other sites

Hi, vocatus, can you reproduce this crash again and send me crash dump? (if crash was handled by Windows it can be found in C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson).

 

Sure thing, I'll load up the latest version (appears to be 1.3.94 as of 2014-05-10) and see if it crashes again.

 

The primary problem I'm experiencing is that it will not connect to very many peers as compared with v1.2.91. A significantly reduced amount (from 50 down to about 10, if I'm lucky).

Share this post


Link to post
Share on other sites

OK, it isn't crashing now, but it's still connecting with far less peers than normal (~20 instead of 50). I have debug logging turned on but am not seeing anything specifically related to peers. What next?

Share this post


Link to post
Share on other sites

Hey Vildhet, some good news.

 

After installing the latest version and letting it run for quite a while, it seems that a) it isn't crashing any more, and B) it does connect to a lot of peers now, about the same amount as previously. It takes longer to get connected than with v1.2.91, but does end up connecting.

 

So we can probably consider this thread closed. Thanks for your help.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.