[bep] When Index message is send?

Hi, I’m implementing alternative syncthing client.

It is not completely clear, when Index message is sent to peer by syncthing. I would assume, that it will send automatically for all shared folders between devices after exchanging ClusterConfig, but no. Also, the is no any “index request” message or something like that.

What should be done to send “Index” message by syncthing to my client? Piece of log (with STTRACE=“protocol”):

[KUEQE] 2021/02/17 15:02:14.557437 service.go:344: INFO: Established secure connection to RF7ZHME-VCU75G2-UXE6X5L-3DGFFVV-5C2ILA6-N3G5V6F-FZYTV73-PFOYJAR at 192.168.100.15:22000-86.57.193.9:22001/tcp-client/TLS1.2-TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
[KUEQE] 2021/02/17 15:02:14.557474 model.go:2145: INFO: Device RF7ZHME-VCU75G2-UXE6X5L-3DGFFVV-5C2ILA6-N3G5V6F-FZYTV73-PFOYJAR client is "syncspirit v0.01" named "hp-note" at 192.168.100.15:22000-86.57.193.9:22001/tcp-client/TLS1.2-TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
[KUEQE] 2021/02/17 15:02:14.557674 protocol.go:805: DEBUG: wrote 166 bytes on the wire (2 bytes length, 2 bytes header, 4 bytes message length, 158 bytes message (158 uncompressed)), err=<nil>
[KUEQE] 2021/02/17 15:02:14.559225 protocol.go:435: DEBUG: read ClusterConfig message
[KUEQE] 2021/02/17 15:02:15.561350 protocol.go:496: DEBUG: read Ping message
[KUEQE] 2021/02/17 15:02:16.563016 protocol.go:496: DEBUG: read Ping message
[KUEQE] 2021/02/17 15:02:17.562635 protocol.go:496: DEBUG: read Ping message
[KUEQE] 2021/02/17 15:02:18.563049 protocol.go:496: DEBUG: read Ping message
[KUEQE] 2021/02/17 15:02:19.563269 protocol.go:496: DEBUG: read Ping message
[KUEQE] 2021/02/17 15:02:20.563091 protocol.go:496: DEBUG: read Ping message
[KUEQE] 2021/02/17 15:02:21.563411 protocol.go:496: DEBUG: read Ping message
[KUEQE] 2021/02/17 15:02:21.925972 protocol.go:943: DEBUG: close due to reading length: EOF
[KUEQE] 2021/02/17 15:02:21.926398 model.go:1709: INFO: Connection to RF7ZHME-VCU75G2-UXE6X5L-3DGFFVV-5C2ILA6-N3G5V6F-FZYTV73-PFOYJAR at 192.168.100.15:22000-86.57.193.9:22001/tcp-client/TLS1.2-TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 closed: reading length: EOF

Thank you, wbr, basiliscos

Index (update) messages are indeed sent automatically, assuming there is something for the other side to actually send.