This pull-request fixes the local replication bug. :fireworks:
%gf+DH5aSJIBAFN5VlmfoJVa4MFfKvWaeJjmFpXdEBrc=.sha256
fix-replication
from master
This pull-request fixes the local replication bug. :fireworks:
Also I bumped ssb-ws
to the latest version.
Once this is merged we can close: %X+4lAR6...
and we can close %WULXhOs...
I'm looking for testers for this patch, if anyone has time today.
It should fix the local replication bug, which leads to other performance improvements because sbot isn't booting local peers every 3 seconds.
Local replication is working with this patch, and my pub (which has local peers, because of how Ramnode works) is much more responsive now.
I don't have any local connections but I can test if is has any negative consequences if not and so far it has been running fine for me.
From my understanding, it looks like all this patch does is stop attempting to connect to pubs if there is already a local peer connection. Am I missing something? Or does this have some interesting emergent properties?
it looks like all this patch does is stop attempting to connect to pubs if there is already a local peer connection.
This is not what I'm experiencing. What was happening before I changed this code was sbot was stopping the local connection as soon as it connected.
While I do not quite understand the full extent of what is happening here, my sbot does continue to connect to remote pubs even with a local connection with this patch.
Here's the last few lines of my sbot log
x.x.x.Connected ssb.badran.net.nz:8008:@+hGSCBZrKuzB/y4KzsIoGrw03fNlVj8kyYLIB2oFtAw=.ed25519
x.x.x.x.x.Connected 120.138.27.120:43761:@uIL3USK7QJg5AHohnZC329+RXS09nwjc24ulFBH2Ngg=.ed25519
Connected pi.bret.io:8008:@j3qWwQrWPzTM9zNgk0SI0FcqP1ULGquuINYEWfL330g=.ed25519
Connected 120.138.27.120:43761:@uIL3USK7QJg5AHohnZC329+RXS09nwjc24ulFBH2Ngg=.ed25519
x.Connected 192.168.1.65:8008:@ya/sq19NPxRza5xtoqi9BilwLZ7HgQjG3QpcTRnGgWs=.ed25519
Connected 192.168.1.65:8008:@ya/sq19NPxRza5xtoqi9BilwLZ7HgQjG3QpcTRnGgWs=.ed25519
Connected 192.168.1.65:8008:@ya/sq19NPxRza5xtoqi9BilwLZ7HgQjG3QpcTRnGgWs=.ed25519
Connected 192.168.1.65:8008:@ya/sq19NPxRza5xtoqi9BilwLZ7HgQjG3QpcTRnGgWs=.ed25519
Connected 188.166.252.233:8008:@uRECWB4KIeKoNMis2UYWyB2aQPvWmS3OePQvBj2zClg=.ed25519
x.x.x.x.x.Connected eight45.net:8008:@eM4e8pmRiZpeCBitqp6vq3lT8EwC5UjjKuajHbpWnNI=.ed25519
I'm connected to @gb and I've continued to connect to other pubs. Not sure why if this isn't what the code is saying?
I do see that I'm having multiple connection attempts to the local client still, so maybe there's still something that be improved here?
4272c738
· 1/1/2017, 12:55:40 AM2df2c996
· 3/6/2017, 5:40:54 AM0fb85853
· 3/13/2017, 11:25:16 AM69b8119e
· 3/16/2017, 2:29:19 AM36911dfc
· 3/25/2017, 6:15:29 AMae758ca8
· 3/28/2017, 6:55:02 AM33fcfd94
· 4/10/2017, 4:00:06 PM159a3fd8
· 4/14/2017, 8:48:07 PM545a1edb
· 4/15/2017, 4:51:46 AMfd6d70a3
· 6/24/2017, 2:37:34 AMa23371a0
· 6/24/2017, 6:25:00 AM6d249434
· 7/1/2017, 11:09:23 AMcb6eb732
· 7/14/2017, 9:27:56 PMb626e54f
· 7/29/2017, 1:16:25 AM748cb587
· 9/19/2017, 11:25:42 PMeb66f4c9
· 12/9/2017, 1:23:54 PMa26ca004
· 1/21/2018, 4:13:44 PMe2b4c1a2
· 2/20/2018, 8:35:34 PMcb27aff5
· 3/13/2018, 11:37:33 AMde509a33
· 4/8/2018, 7:28:54 PMcab5d804
· 4/8/2018, 7:29:25 PM0487bdcc
· 5/13/2018, 2:40:07 PM41f303be
· 10/1/2018, 11:41:29 PMfe1d22f1
· 10/1/2018, 11:43:47 PM648624dc
· 12/17/2018, 2:13:00 PMBuilt with git-ssb-web