mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
vendor: update github.com/VictoriaMetrics/fasthttp from v1.0.8 to v1.0.9
This commit is contained in:
parent
b0a5c382ee
commit
3dffc6099e
5 changed files with 17 additions and 14 deletions
2
go.mod
2
go.mod
|
@ -7,7 +7,7 @@ require (
|
||||||
|
|
||||||
// Do not use the original github.com/valyala/fasthttp because of issues
|
// Do not use the original github.com/valyala/fasthttp because of issues
|
||||||
// like https://github.com/valyala/fasthttp/commit/996610f021ff45fdc98c2ce7884d5fa4e7f9199b
|
// like https://github.com/valyala/fasthttp/commit/996610f021ff45fdc98c2ce7884d5fa4e7f9199b
|
||||||
github.com/VictoriaMetrics/fasthttp v1.0.8
|
github.com/VictoriaMetrics/fasthttp v1.0.9
|
||||||
github.com/VictoriaMetrics/metrics v1.12.3
|
github.com/VictoriaMetrics/metrics v1.12.3
|
||||||
github.com/VictoriaMetrics/metricsql v0.7.2
|
github.com/VictoriaMetrics/metricsql v0.7.2
|
||||||
github.com/aws/aws-sdk-go v1.35.31
|
github.com/aws/aws-sdk-go v1.35.31
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -40,8 +40,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
|
||||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||||
github.com/VictoriaMetrics/fastcache v1.5.7 h1:4y6y0G8PRzszQUYIQHHssv/jgPHAb5qQuuDNdCbyAgw=
|
github.com/VictoriaMetrics/fastcache v1.5.7 h1:4y6y0G8PRzszQUYIQHHssv/jgPHAb5qQuuDNdCbyAgw=
|
||||||
github.com/VictoriaMetrics/fastcache v1.5.7/go.mod h1:ptDBkNMQI4RtmVo8VS/XwRY6RoTu1dAWCbrk+6WsEM8=
|
github.com/VictoriaMetrics/fastcache v1.5.7/go.mod h1:ptDBkNMQI4RtmVo8VS/XwRY6RoTu1dAWCbrk+6WsEM8=
|
||||||
github.com/VictoriaMetrics/fasthttp v1.0.8 h1:Vhf0IGbjajV9mqEpy3y1VVISTgGay9yqR04Y9GD0CFI=
|
github.com/VictoriaMetrics/fasthttp v1.0.9 h1:Fja1tfcNMNoUD7RJDYpjGx2CsSfXkUbISKY4kNafdN4=
|
||||||
github.com/VictoriaMetrics/fasthttp v1.0.8/go.mod h1:3SeUL4zwB/p/a9aEeRc6gdlbrtNHXBJR6N376EgiSHU=
|
github.com/VictoriaMetrics/fasthttp v1.0.9/go.mod h1:3SeUL4zwB/p/a9aEeRc6gdlbrtNHXBJR6N376EgiSHU=
|
||||||
github.com/VictoriaMetrics/metrics v1.12.2/go.mod h1:Z1tSfPfngDn12bTfZSCqArT3OPY3u88J12hSoOhuiRE=
|
github.com/VictoriaMetrics/metrics v1.12.2/go.mod h1:Z1tSfPfngDn12bTfZSCqArT3OPY3u88J12hSoOhuiRE=
|
||||||
github.com/VictoriaMetrics/metrics v1.12.3 h1:Fe6JHC6MSEKa+BtLhPN8WIvS+HKPzMc2evEpNeCGy7I=
|
github.com/VictoriaMetrics/metrics v1.12.3 h1:Fe6JHC6MSEKa+BtLhPN8WIvS+HKPzMc2evEpNeCGy7I=
|
||||||
github.com/VictoriaMetrics/metrics v1.12.3/go.mod h1:Z1tSfPfngDn12bTfZSCqArT3OPY3u88J12hSoOhuiRE=
|
github.com/VictoriaMetrics/metrics v1.12.3/go.mod h1:Z1tSfPfngDn12bTfZSCqArT3OPY3u88J12hSoOhuiRE=
|
||||||
|
|
4
vendor/github.com/VictoriaMetrics/fasthttp/fs.go
generated
vendored
4
vendor/github.com/VictoriaMetrics/fasthttp/fs.go
generated
vendored
|
@ -591,8 +591,8 @@ func (r *fsSmallFileReader) WriteTo(w io.Writer) (int64, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
curPos := r.startPos
|
curPos := r.startPos
|
||||||
bufv := copyBufPool.Get()
|
bufv := copyBufPool.Get().(*copyBuf)
|
||||||
buf := bufv.([]byte)
|
buf := bufv.b[:]
|
||||||
for err == nil {
|
for err == nil {
|
||||||
tailLen := r.endPos - curPos
|
tailLen := r.endPos - curPos
|
||||||
if tailLen <= 0 {
|
if tailLen <= 0 {
|
||||||
|
|
19
vendor/github.com/VictoriaMetrics/fasthttp/http.go
generated
vendored
19
vendor/github.com/VictoriaMetrics/fasthttp/http.go
generated
vendored
|
@ -1476,8 +1476,8 @@ type httpWriter interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
func writeBodyChunked(w *bufio.Writer, r io.Reader) error {
|
func writeBodyChunked(w *bufio.Writer, r io.Reader) error {
|
||||||
vbuf := copyBufPool.Get()
|
bufv := copyBufPool.Get().(*copyBuf)
|
||||||
buf := vbuf.([]byte)
|
buf := bufv.b[:]
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
var n int
|
var n int
|
||||||
|
@ -1500,7 +1500,7 @@ func writeBodyChunked(w *bufio.Writer, r io.Reader) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
copyBufPool.Put(vbuf)
|
copyBufPool.Put(bufv)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1541,16 +1541,19 @@ func writeBodyFixedSize(w *bufio.Writer, r io.Reader, size int64) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func copyZeroAlloc(w io.Writer, r io.Reader) (int64, error) {
|
func copyZeroAlloc(w io.Writer, r io.Reader) (int64, error) {
|
||||||
vbuf := copyBufPool.Get()
|
buf := copyBufPool.Get().(*copyBuf)
|
||||||
buf := vbuf.([]byte)
|
n, err := io.CopyBuffer(w, r, buf.b[:])
|
||||||
n, err := io.CopyBuffer(w, r, buf)
|
copyBufPool.Put(buf)
|
||||||
copyBufPool.Put(vbuf)
|
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type copyBuf struct {
|
||||||
|
b [4 * 4096]byte
|
||||||
|
}
|
||||||
|
|
||||||
var copyBufPool = sync.Pool{
|
var copyBufPool = sync.Pool{
|
||||||
New: func() interface{} {
|
New: func() interface{} {
|
||||||
return make([]byte, 4096)
|
return ©Buf{}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -10,7 +10,7 @@ cloud.google.com/go/internal/version
|
||||||
cloud.google.com/go/storage
|
cloud.google.com/go/storage
|
||||||
# github.com/VictoriaMetrics/fastcache v1.5.7
|
# github.com/VictoriaMetrics/fastcache v1.5.7
|
||||||
github.com/VictoriaMetrics/fastcache
|
github.com/VictoriaMetrics/fastcache
|
||||||
# github.com/VictoriaMetrics/fasthttp v1.0.8
|
# github.com/VictoriaMetrics/fasthttp v1.0.9
|
||||||
github.com/VictoriaMetrics/fasthttp
|
github.com/VictoriaMetrics/fasthttp
|
||||||
github.com/VictoriaMetrics/fasthttp/fasthttputil
|
github.com/VictoriaMetrics/fasthttp/fasthttputil
|
||||||
github.com/VictoriaMetrics/fasthttp/stackless
|
github.com/VictoriaMetrics/fasthttp/stackless
|
||||||
|
|
Loading…
Reference in a new issue