deepsource-autofix[bot]
81d8fa1cb5
all: Fix unused method receiver (further) ( #8466 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-07-28 17:55:29 +02:00
deepsource-autofix[bot]
5130c414da
all: Unused parameter should be replaced by underscore ( #8464 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-07-28 17:17:29 +02:00
Simon Frei
b947056e62
lib: Removal global connection registry ( #8254 )
2022-04-09 16:04:56 +02:00
Simon Frei
70a840d3d5
lib/connections: Remove future go build constraints on quic ( #7898 )
2021-08-19 21:05:28 +02:00
Jakob Borg
d47745a86b
all: Update build constraints to Go 1.17 style ( #7894 )
2021-08-17 10:10:41 +02:00
Audrius Butkevicius
fe77fac23f
Update quic to 0.22.0 to support RFC9000, enable batch reads ( #7862 )
...
* Update quic to 0.22.0 to support RFC9000, enable batch reads
* Remove wrappers that are not needed anymore
2021-08-05 05:44:22 +02:00
greatroar
1e21042138
lib/connections: switch statement to get the QUIC network ( #7816 )
2021-07-10 13:53:51 +02:00
Audrius Butkevicius
aca1b45e93
lib/connections: Update pfilter to pick up bugfix/oob stuff, support OOB connections ( fixes #7636 ) ( #7654 )
2021-05-11 07:59:56 +02:00
Audrius Butkevicius
411796606c
lib/connections: Correct service termination order ( #7657 )
2021-05-10 22:29:27 +02:00
Audrius Butkevicius
eb178caf3a
lib/connections: Add connection benchmarks, allow binding to port zero addresses ( #7648 )
...
* Add connbench
* Refactor port fixup
* More cleanup
* touch for build
Co-authored-by: Jakob Borg <jakob@kastelo.net>
2021-05-10 15:44:47 +01:00
Simon Frei
6157c766de
lib/connections: Correct comments on quic wrapper type ( #7652 )
2021-05-09 19:15:10 +01:00
Audrius Butkevicius
745cd4744a
lib/connections: Revert add more methods to the quic conn wrapper ( #7651 )
...
This reverts commit faf15b4567
.
2021-05-09 19:43:16 +02:00
Simon Frei
faf15b4567
lib/connections: Add more methods to the quic conn wrapper ( #7643 )
2021-05-09 12:45:08 +01:00
Simon Frei
15d2dc3a4f
lib/connections: Add SyscallConn() to quic conn ( fixes #7551 ) ( #7570 )
2021-04-13 12:59:58 +01:00
Jakob Borg
8ef504f745
all: Simplify some method calls ( #7499 )
...
strings.Replace(a, b, c, -1) -> strings.ReplaceAll(a, b, c)
(Go 1.12) and who knows what was up with that dialQueue.Sort() thing.
2021-03-17 23:12:26 +01:00
Simon Frei
767e1c6f58
lib/connections: Expose SetReadBuffer on conn passed to quic (ref #7417 ) ( #7432 )
2021-03-05 08:06:37 +01:00
Jakob Borg
327604719a
lib/connections: Allow QUIC with Go 1.16 ( #7372 )
2021-02-17 11:09:16 +01:00
Jakob Borg
b13b15758d
lib/connections, lib/model: Track last connection duration (ref #7223 ) ( #7242 )
...
This adds a statistic to track the last connection duration per device.
It isn't used for much in this PR, but it's available for #7223 to use
in deciding how to order device connection attempts (deprioritizing
devices that just dropped our connection the last time).
2021-01-05 17:45:07 +01:00
Simon Frei
a20a5f61f0
lib/ur: Send unreported failures on shutdown ( #7164 )
2020-12-22 20:17:14 +01:00
Jakob Borg
e9b68a224c
lib/connections: Handle QUIC not being available ( #7186 )
...
This does two things:
- Exclude QUIC from go1.16 builds, automatically, for now, since it
doesn't work and just panics.
- Provide some fake listeners and dialers when QUIC is disabled.
These fake listeners and dialers indicate that they are disabled and
unsupported, which silences "Dialing $address: unknown address scheme:
quic" type of stuff which is not super helpful to the user.
2020-12-09 19:23:50 +01:00
Simon Frei
9524b51708
all: Implement suture v4-api ( #6947 )
2020-11-17 13:19:04 +01:00
Audrius Butkevicius
a17a8cd48b
lib/connections: Fix LAN addresses begin advertised even when disabled ( fixes #7035 ) ( #7045 )
2020-10-21 09:16:44 +02:00
Audrius Butkevicius
b19b5c95d3
lib/connections: Announce LAN addresses by default ( fixes #6928 ) ( #6896 )
2020-08-25 11:48:14 +02:00
Jakob Borg
6f4671ed27
lib/connections: Add noquic tag
...
The QUIC package is notorious for being incompatible with either too
old or too new Go releases. Currently it doesn't build with Go 1.15 RC
and I want to test the rest with Go 1.15. With this I can do `go run
build.go --tags noquic` to do that.
2020-07-30 09:42:02 +02:00
Audrius Butkevicius
7dc290c3ed
lib/connections: React to listeners going up and down faster ( #6590 )
2020-05-11 15:02:22 +02:00
Audrius Butkevicius
ac7338f1f2
lib/connections: Update quic ( #6591 )
...
* lib/connections: Update quic
* Fix freebsd builds?
* Undo x/sys and gopsutil update
* Update quic_dial.go
* Update quic_listen.go
2020-05-01 08:14:28 +01:00
Simon Frei
90d85fd0a2
lib: Replace done channel with contexts in and add names to util services ( #6166 )
2019-11-21 08:41:15 +01:00
Audrius Butkevicius
c4f161d8c5
lib/connections: Rate limit quic accept loop ( fixes #6081 ) ( #6082 )
2019-10-18 09:55:37 +02:00
Jakob Borg
c2ea9d119d
lib/connections: Upgrade QUIC package, use contexts for timeout ( #5972 )
2019-08-23 10:15:52 +02:00
Simon Frei
ba056578ec
lib: Add util.Service as suture.Service template ( fixes #5801 ) ( #5806 )
2019-07-09 11:40:30 +02:00
Audrius Butkevicius
ee746263fb
lib/connections: Do not leak FDs, fix address copy ( fixes #5767 ) ( #5768 )
...
* lib/connections: Do not leak FDs, fix address copy (fixes #5767 )
* build
* Update quic_listen.go
* Update quic_listen.go
2019-06-09 22:14:00 +01:00
Audrius Butkevicius
e714df013f
lib/connections: Add QUIC protocol support ( fixes #5377 ) ( #5737 )
2019-05-29 09:56:40 +02:00