syncthing/lib/discover
Jakob Borg abd89f15f7
lib/discover: Enable HTTP/2 for global discovery requests (#9059)
By creating the http.Transport and tls.Configuration ourselves we
override some default behavior and end up with a client that speaks only
HTTP/1.1.

This adds a call to http.ConfigureTransport to do the relevant magic to
enable HTTP/2.

Also tweaks the keepalive settings to be a little kinder to the
server(s).
2023-08-30 21:58:05 +02:00
..
mocks lib: Use counterfeiter to mock interfaces in tests (#7375) 2021-03-03 08:53:50 +01:00
cache_test.go all: Fix unused method receiver (further) (#8466) 2022-07-28 17:55:29 +02:00
cache.go all: Implement suture v4-api (#6947) 2020-11-17 13:19:04 +01:00
debug.go all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
discover.go all: Implement suture v4-api (#6947) 2020-11-17 13:19:04 +01:00
doc.go build: Update quic-go for Go 1.19 (#8483) 2022-08-03 15:43:26 +02:00
global_test.go all: fix unused method receiver (#8988) 2023-07-18 14:34:50 +00:00
global.go lib/discover: Enable HTTP/2 for global discovery requests (#9059) 2023-08-30 21:58:05 +02:00
local_test.go lib/discover: Filter locally announced addresses (fixes #7289) (#8302) 2022-05-04 18:43:00 +02:00
local.go lib/discover: Don't leak relay-tokens to discovery (#8762) 2023-03-04 12:16:57 +01:00
local.pb.go all: Regenerate proto (#7696) 2021-05-19 13:30:20 +02:00
manager.go all: Remove lib/util package (#9049) 2023-08-21 19:44:33 +02:00