SaitoTech / saito-rust-workspace

Cargo workspace which contains all the rust projects for Saito
4 stars 3 forks source link

Handshake Issues #776

Closed SankaD closed 3 months ago

SankaD commented 3 months ago

We have another killer browser: 101.184.182.68

I did an experiment where i unblocked it for 60 seconds then blocked it again a the fire wall.

Here is the peers::state info the node is unblocked at the point makred with the ** and blocked again at the ++

2024-05-03 02:04:15.094 UTC - peers::state - total peers : 10. in handshake : 0
2024-05-03 02:04:20.095 UTC - peers::state - total peers : 10. in handshake : 0
2024-05-03 02:04:25.096 UTC - peers::state - total peers : 10. in handshake : 0
2024-05-03 02:04:30.097 UTC - peers::state - total peers : 10. in handshake : 0
2024-05-03 02:04:35.098 UTC - peers::state - total peers : 10. in handshake : 0
2024-05-03 02:04:40.099 UTC - peers::state - total peers : 10. in handshake : 0
2024-05-03 02:04:45.100 UTC - peers::state - total peers : 10. in handshake : 0
2024-05-03 02:04:50.101 UTC - peers::state - total peers : 10. in handshake : 0
2024-05-03 02:04:55.101 UTC - peers::state - total peers : 10. in handshake : 0
2024-05-03 02:05:00.102 UTC - peers::state - total peers : 10. in handshake : 0 **
2024-05-03 02:05:05.108 UTC - peers::state - total peers : 10. in handshake : 0
2024-05-03 02:05:10.108 UTC - peers::state - total peers : 16. in handshake : 0
2024-05-03 02:05:18.123 UTC - peers::state - total peers : 21. in handshake : 0
2024-05-03 02:05:24.636 UTC - peers::state - total peers : 22. in handshake : 1
2024-05-03 02:05:43.855 UTC - peers::state - total peers : 22. in handshake : 0
2024-05-03 02:05:49.441 UTC - peers::state - total peers : 25. in handshake : 3
2024-05-03 02:05:55.291 UTC - peers::state - total peers : 28. in handshake : 5
2024-05-03 02:06:00.663 UTC - peers::state - total peers : 34. in handshake : 5
2024-05-03 02:06:07.231 UTC - peers::state - total peers : 36. in handshake : 2
2024-05-03 02:06:12.747 UTC - peers::state - total peers : 36. in handshake : 0
2024-05-03 02:06:18.859 UTC - peers::state - total peers : 36. in handshake : 0
2024-05-03 02:06:23.860 UTC - peers::state - total peers : 36. in handshake : 0
2024-05-03 02:06:28.862 UTC - peers::state - total peers : 36. in handshake : 0
2024-05-03 02:06:34.787 UTC - peers::state - total peers : 36. in handshake : 0
2024-05-03 02:06:40.446 UTC - peers::state - total peers : 36. in handshake : 0 ++
2024-05-03 02:06:45.447 UTC - peers::state - total peers : 36. in handshake : 0
2024-05-03 02:06:50.448 UTC - peers::state - total peers : 36. in handshake : 0 
2024-05-03 02:06:56.004 UTC - peers::state - total peers : 36. in handshake : 0 
2024-05-03 02:07:01.005 UTC - peers::state - total peers : 36. in handshake : 0 
2024-05-03 02:07:07.011 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:07:12.012 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:07:17.207 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:07:22.208 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:07:27.497 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:07:32.498 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:07:37.499 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:07:42.500 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:07:47.501 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:07:52.501 UTC - peers::state - total peers : 32. in handshake : 0 
2024-05-03 02:07:57.502 UTC - peers::state - total peers : 32. in handshake : 0 
2024-05-03 02:08:02.503 UTC - peers::state - total peers : 32. in handshake : 0 
2024-05-03 02:08:07.504 UTC - peers::state - total peers : 32. in handshake : 0 
2024-05-03 02:08:12.504 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:08:17.505 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:08:22.506 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:08:27.507 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:08:32.507 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:08:37.508 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:08:42.509 UTC - peers::state - total peers : 33. in handshake : 0 
2024-05-03 02:08:47.510 UTC - peers::state - total peers : 32. in handshake : 0 
2024-05-03 02:08:52.511 UTC - peers::state - total peers : 32. in handshake : 0 
2024-05-03 02:08:57.512 UTC - peers::state - total peers : 31. in handshake : 0 
2024-05-03 02:09:02.513 UTC - peers::state - total peers : 31. in handshake : 0 
2024-05-03 02:09:07.514 UTC - peers::state - total peers : 31. in handshake : 0 
2024-05-03 02:09:12.515 UTC - peers::state - total peers : 31. in handshake : 0 
2024-05-03 02:09:17.516 UTC - peers::state - total peers : 31. in handshake : 0 

This is the nginx output from before the node was unblocked till it was blocked again...

Fri May  3 02:05:36 UTC 2024 pts/4: 2 files 1.2Mb: ~/test
root@ariadne: tail -f  /var/log/nginx/access.log | grep 101.184
101.184.182.68 - - [03/May/2024:02:05:46 +0000] "GET /wsopen HTTP/1.1" 101 35 "-"
 "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.
0"
101.184.182.68 - - [03/May/2024:02:05:48 +0000] "GET /lite-block/12829726123d5747
5f0898700b121669628fca7ed3011f30e3f9e81e1bee6b3d/u88zonSmTJx8wiacqeDEJcQ7oPBaHMCc
ZqbvxWRxrEPC HTTP/1.1" 200 313 "https://saito.io/migration/" "Mozilla/5.0 (Window
s NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"
101.184.182.68 - - [03/May/2024:02:05:50 +0000] "GET /lite-block/01243b918471368c
cd66d28e3ffe9879a0da40b5999bd30b79c14d2203da481c/u88zonSmTJx8wiacqeDEJcQ7oPBaHMCc
ZqbvxWRxrEPC HTTP/1.1" 200 317 "https://saito.io/migration/" "Mozilla/5.0 (Window
s NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"
101.184.182.68 - - [03/May/2024:02:06:03 +0000] "GET /lite-block/6e9155d7d2f2ae19
87b17c7dd04a952345344e97df84fbaa99db425a38e1e3bb/u88zonSmTJx8wiacqeDEJcQ7oPBaHMCc
ZqbvxWRxrEPC HTTP/1.1" 200 315 "https://saito.io/migration/" "Mozilla/5.0 (Window
s NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"
101.184.182.68 - - [03/May/2024:02:06:03 +0000] "GET /lite-block/6e9155d7d2f2ae19
87b17c7dd04a952345344e97df84fbaa99db425a38e1e3bb/u88zonSmTJx8wiacqeDEJcQ7oPBaHMCc
ZqbvxWRxrEPC HTTP/1.1" 499 0 "https://saito.io/migration/" "Mozilla/5.0 (Windows 
NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0"
101.184.182.68 - - [03/May/2024:02:07:03 +0000] "GET /wsopen HTTP/1.1" 101 265034
 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/
125.0"
101.184.182.68 - - [03/May/2024:02:07:03 +0000] "GET /wsopen HTTP/1.1" 101 267111
 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/
125.0"
101.184.182.68 - - [03/May/2024:02:07:04 +0000] "GET /wsopen HTTP/1.1" 101 439892
 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/
125.0"
101.184.182.68 - - [03/May/2024:02:08:46 +0000] "GET /wsopen HTTP/1.1" 101 200370
 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/
125.0"

We can also see:

Image

The nodes memory usage goes up strongly and then is not recovered.