syncthing/lib/connections
Jakob Borg 05f25e600e
lib/connections: Refactor connection loop (#7177)
This breaks out some methods from the connection loop to make it simpler
to manage and understand.

Some slight simplifications to remove the `seen` variable (we can filter
`nextDial` based on times are in the future or not, so we don't need to
track `seen`) and adding a minimum loop interval (5s) in case some
dialer goes haywire and requests a 0s redial interval or such.

Otherwise no significant behavioral changes.
2020-12-21 16:40:13 +01:00
..
registry lib/connections: Add QUIC protocol support (fixes #5377) (#5737) 2019-05-29 09:56:40 +02:00
connections_test.go lib/connections: Correctly fixup port in IPv6 listen URLs (#6786) 2020-06-22 16:47:15 +01:00
debug.go all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
deprecated.go lib/connections: Handle QUIC not being available (#7186) 2020-12-09 19:23:50 +01:00
lan_test.go all: Refactor preparing configuration (#7127) 2020-11-20 14:21:54 +01:00
limiter.go all: Use protobuf to generate config structs (fixes #6734) (#6900) 2020-08-25 08:11:14 +02:00
limiter_test.go all: Refactor preparing configuration (#7127) 2020-11-20 14:21:54 +01:00
quic_dial.go lib/connections: Handle QUIC not being available (#7186) 2020-12-09 19:23:50 +01:00
quic_listen.go lib/connections: Handle QUIC not being available (#7186) 2020-12-09 19:23:50 +01:00
quic_misc.go lib/connections: Handle QUIC not being available (#7186) 2020-12-09 19:23:50 +01:00
quic_unsupported.go lib/connections: Handle QUIC not being available (#7186) 2020-12-09 19:23:50 +01:00
relay_dial.go all: Use context in lib/dialer (#6177) 2019-11-26 07:39:51 +00:00
relay_listen.go all: Implement suture v4-api (#6947) 2020-11-17 13:19:04 +01:00
service.go lib/connections: Refactor connection loop (#7177) 2020-12-21 16:40:13 +01:00
structs.go lib: Close underlying conn in protocol (fixes #7165) (#7212) 2020-12-21 11:40:51 +01:00
tcp_dial.go lib/connections: Try TCP punchthrough (fixes #4259) (#5753) 2020-06-16 09:17:07 +02:00
tcp_listen.go all: Implement suture v4-api (#6947) 2020-11-17 13:19:04 +01:00
util.go lib/connections: Announce LAN addresses by default (fixes #6928) (#6896) 2020-08-25 11:48:14 +02:00