diff options
author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2020-12-01 22:27:46 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-01 08:27:46 -0700 |
commit | 4cff36d731390915649261f0e9c088be0eeafcf1 (patch) | |
tree | 9b387b83815ca6ed6929a6b0a468ffbf88c182a2 /modules/caddyhttp/fileserver/staticfiles_test.go | |
parent | a26f70a12b1289231d705bc002fe1df3180cb6c5 (diff) |
caddyauth: Use buffered channel passed to signal.Notify (#3895)
The docs at os/signal.Notify warn about this signal delivery loss bug at
https://golang.org/pkg/os/signal/#Notify, which says:
Package signal will not block sending to c: the caller must ensure
that c has sufficient buffer space to keep up with the expected signal
rate. For a channel used for notification of just one signal value,
a buffer of size 1 is sufficient.
Caught by a static analysis tool from Orijtech, Inc. called "sigchanyzer"
Diffstat (limited to 'modules/caddyhttp/fileserver/staticfiles_test.go')
0 files changed, 0 insertions, 0 deletions