syncthing/cmd
Jakob Borg d0ab65a178 cmd/stcrashreceiver: Don't leak clients
Use a global raven.Client because they allocate an http.Client for each,
with a separate CA bundle and infinite connection idle time. Infinite
connection idle time means that if the client is never used again it
will always keep the connection around, not verifying whether it's
closed server side or not. This leaks about a megabyte of memory for
each client every created.

client.Close() doesn't help with this because the http.Client is still
around, retained by its own goroutines.

The thing with the map is just to retain the API on sendReport, even
though there will in practice only ever be one DSN per process
instance...
2019-07-09 11:11:06 +02:00
..
stbench all: Fix comment typos 2017-11-04 07:20:11 +00:00
stcli all: Use new reflect based CLI (#5487) 2019-02-12 07:58:24 +01:00
stcompdirs lib: Folder marker is now a folder 2017-09-02 05:52:38 +00:00
stcrashreceiver cmd/stcrashreceiver: Don't leak clients 2019-07-09 11:11:06 +02:00
stdisco all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stdiscosrv all: A few more interesting linter fixes (#5502) 2019-02-02 12:09:07 +01:00
stevents all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stfileinfo all: Implement variable sized blocks (fixes #4807) 2018-04-16 19:08:50 +01:00
stfinddevice all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stfindignored cmd/stfindignored: Default to current directory 2018-06-06 22:24:36 +02:00
stgenfiles all: Revert the underscore sillyness 2019-02-02 12:16:27 +01:00
stindex all: A few more interesting linter fixes (#5502) 2019-02-02 12:09:07 +01:00
strelaypoolsrv lib/connections: Add QUIC protocol support (fixes #5377) (#5737) 2019-05-29 09:56:40 +02:00
strelaysrv all: A few more interesting linter fixes (#5502) 2019-02-02 12:09:07 +01:00
stsigtool cmd/stsigtool: Silence spurious Go 1.10 test/vet complaint 2017-12-10 19:42:17 +01:00
stvanity all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stwatchfile all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
syncthing cmd/syncthing, lib/db: Exit/close db faster (fixes #5781) (#5782) 2019-06-17 15:27:25 +03:00
todos all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
uraggregate cmd/ur*: Updates for 1.0 2019-01-03 21:46:02 +01:00
ursrv cmd/ursrv: Lint fixes 2019-05-18 11:59:32 +02:00
.gitignore Remove reprecated st* utils 2014-07-01 12:20:25 +02:00