git ssb

4+

Dominic / scuttlebot



This pull-request fixes the local replication bug. :fireworks:

%gf+DH5aSJIBAFN5VlmfoJVa4MFfKvWaeJjmFpXdEBrc=.sha256
Open ev wants to merge commits into fix-replication from master
ev · 12/25/2016, 3:05:43 AM

This pull-request fixes the local replication bug. :fireworks:

Also I bumped ssb-ws to the latest version.

%zjoHwNM/mgLu/EtUlxzAXzFfrdqRJDm6dej/13dWE0w=.sha256 ev · 12/25/2016, 3:14:59 AM

Once this is merged we can close: %X+4lAR6...

%C0YVb+DvgrY82nP+ZAvaZntWmjtMbDwNMe3E9D4N94s=.sha256 ev · 12/25/2016, 3:20:07 AM

and we can close %WULXhOs...

%v6pcZqc1c4y/VTC5dwrpPF29V18WKnmeGcOIGut8sjI=.sha256 ev · 12/26/2016, 5:02:13 PM

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.

%yAsZaGlCg0EnlSeQLMGgOkX2TAMRWsg6HziacxpMBa4=.sha256 arj · 12/26/2016, 7:28:46 PM

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.

%KGLue1+385LTHZfUZk1gkW8l68ORm2YIkvAVWFbNzew=.sha256 Matt McKegg · 12/27/2016, 2:08:19 AM

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?

%8+2wUPHg7ZJeeLT0J7MCVcxYSzahxTDhua3kE8cRc/c=.sha256 ev · 12/27/2016, 3:21:19 AM

@matt

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.

%2sf9ZMHCEhg6p8EUfUwXhsMNDaDWeAorPVAHs6G1f7Y=.sha256 ev · 12/27/2016, 3:27:09 AM

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?

Dominic updated the branch to 4272c738 · 1/1/2017, 12:55:40 AM
cel updated the branch to 2df2c996 · 3/6/2017, 5:40:54 AM
Dominic updated the branch to 0fb85853 · 3/13/2017, 11:25:16 AM
cel updated the branch to 69b8119e · 3/16/2017, 2:29:19 AM
Dominic updated the branch to 36911dfc · 3/25/2017, 6:15:29 AM
Dominic updated the branch to ae758ca8 · 3/28/2017, 6:55:02 AM
Dominic updated the branch to 33fcfd94 · 4/10/2017, 4:00:06 PM
Dominic updated the branch to 159a3fd8 · 4/14/2017, 8:48:07 PM
mixmix updated the branch to 545a1edb · 4/15/2017, 4:51:46 AM
Dominic updated the branch to fd6d70a3 · 6/24/2017, 2:37:34 AM
Dominic updated the branch to a23371a0 · 6/24/2017, 6:25:00 AM
Dominic updated the branch to 6d249434 · 7/1/2017, 11:09:23 AM
Dominic updated the branch to cb6eb732 · 7/14/2017, 9:27:56 PM
Dominic updated the branch to b626e54f · 7/29/2017, 1:16:25 AM
mixmix updated the branch to 748cb587 · 9/19/2017, 11:25:42 PM
cryptix updated the branch to eb66f4c9 · 12/9/2017, 1:23:54 PM
mixmix updated the branch to a26ca004 · 1/21/2018, 4:13:44 PM
cryptix updated the branch to e2b4c1a2 · 2/20/2018, 8:35:34 PM
cryptix updated the branch to cb27aff5 · 3/13/2018, 11:37:33 AM
cryptix updated the branch to de509a33 · 4/8/2018, 7:28:54 PM
cryptix updated the branch to cab5d804 · 4/8/2018, 7:29:25 PM
cel updated the branch to 0487bdcc · 5/13/2018, 2:40:07 PM
cryptix updated the branch to 41f303be · 10/1/2018, 11:41:29 PM
cryptix updated the branch to fe1d22f1 · 10/1/2018, 11:43:47 PM
noGameIsWatchingYou updated the branch to 648624dc · 12/17/2018, 2:13:00 PM

Built with git-ssb-web