Skip to content

Commit

Permalink
update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
newacorn committed Oct 20, 2024
1 parent 8462cf9 commit d48a746
Show file tree
Hide file tree
Showing 22 changed files with 116 additions and 110 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ tags
.vscode
.DS_Store
vendor/
testdata/fuzz
testdata2/cantAccess
testdata/fuzz
4 changes: 2 additions & 2 deletions brio_stream_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import (
gbytes "bytes"
"compress/gzip"
"fmt"
"github.com/andybalholm/brotli"
"github.com/gookit/goutil/testutil/assert"
"github.com/newacorn/brotli"
"github.com/newacorn/goutils/bytes"
"github.com/newacorn/goutils/compress"
bpool "github.com/newacorn/simple-bytes-pool"
"github.com/xyproto/randomstring"
"io"
"log"
"strconv"
"testing"
"utils/compress"
)

func BenchmarkBodyCompress(b *testing.B) {
Expand Down
6 changes: 3 additions & 3 deletions brotli.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package fasthttp
import (
"bytes"
"fmt"
"github.com/google/brotli/go/cbrotli"
"github.com/newacorn/cbrotli/go/cbrotli"
ucompress "github.com/newacorn/goutils/compress"
"io"
"sync"
ucompress "utils/compress"

"github.com/andybalholm/brotli"
"github.com/newacorn/brotli"
"github.com/valyala/bytebufferpool"
"github.com/valyala/fasthttp/stackless"
)
Expand Down
6 changes: 3 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ func (c *Client) createHostClient(host string, isTLS bool) (hc *HostClient, err
if c.MaxIdleConnDuration == 0 {
du = DefaultMaxIdleConnDuration
}
RegisterCleanableItem(c, du)
registerCleanableItem(c, du)
c.cleanStart = true
}
if c.ConfigureClient != nil {
Expand Down Expand Up @@ -472,7 +472,7 @@ func (c *Client) AddHostClient(host string, hc *HostClient) {
if du == 0 {
du = DefaultMaxIdleConnDuration
}
RegisterCleanableItem(c, du)
registerCleanableItem(c, du)
c.cleanStart = true
}
c.mLock.Unlock()
Expand Down Expand Up @@ -1529,7 +1529,7 @@ func (c *HostClient) acquireConn(dialTimeout, writeTimeout time.Duration, connec
c.connsCount++
createConn = true
if !c.connsCleanerRun && !connectionClose && c.maxIdleConnDuration > 0 {
RegisterCleanableItem(c, c.maxIdleConnDuration)
registerCleanableItem(c, c.maxIdleConnDuration)
c.connsCleanerRun = true
}
}
Expand Down
4 changes: 2 additions & 2 deletions client_cleaner.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ var defaultClientCleaner = DurationCleaner{
minDuration: time.Millisecond * 500,
}

func RegisterCleanableItem(client CleanableItem, duration time.Duration) {
func registerCleanableItem(client CleanableItem, duration time.Duration) {
defaultClientCleaner.Register(client, duration)
}
func StopDurationCleaner() {
func stopDurationCleaner() {
defaultClientCleaner.Stop()
}

Expand Down
44 changes: 2 additions & 42 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import (
"crypto/tls"
"errors"
"fmt"
"golang.org/x/text/encoding/simplifiedchinese"
"github.com/newacorn/goutils/compress"
"github.com/valyala/fasthttp/fasthttputil"
"io"
"net"
"net/http"
Expand All @@ -20,10 +21,6 @@ import (
"syscall"
"testing"
"time"
"utils/compress"
"utils/transform"

"github.com/valyala/fasthttp/fasthttputil"
)

func newDialHelper(dial func(addr string) (net.Conn, error)) Dialer {
Expand Down Expand Up @@ -3891,43 +3888,6 @@ func TestHostClientRedirect(t *testing.T) {
}
}

func Test(t *testing.T) {
t.Skip()
var cli Client
req := AcquireRequest()
resp := AcquireResponse()
defer func() {
ReleaseRequest(req)
ReleaseResponse(resp)
}()
reqURL := `https://www.jxjyedu.org.cn/student/chapterlist.jsp?id=202372&idle=55`
req.SetRequestURI(reqURL)
err := cli.Do(req, resp)
if err != nil {
t.Fatal(err)
}
en := resp.Header.Peek(HeaderContentEncoding)
body := resp.Body()
if len(en) > 0 {
err, br := DecodeEncoding(bytes.NewReader(body), b2s(en))
if err != nil {
t.Fatal(err)
}
body, err = io.ReadAll(br)
if err != nil {
t.Fatal(err)
}
}
ch := resp.Header.Charset()
if b2s(ch) == CharsetGBK {
r := transform.NewReader(bytes.NewReader(resp.Body()), simplifiedchinese.GBK.NewDecoder())
body, err = ReadAll(r)
if err != nil {
t.Fatal(err)
}
}
}

func DecodeEncoding(r io.Reader, encoding string) (err error, br io.Reader) {
var rr compress.ReadResetCloser
switch encoding {
Expand Down
2 changes: 1 addition & 1 deletion compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package fasthttp
import (
"bytes"
"fmt"
ucompress "github.com/newacorn/goutils/compress"
"io"
"io/fs"
"sync"
ucompress "utils/compress"

"github.com/klauspost/compress/flate"
"github.com/klauspost/compress/gzip"
Expand Down
15 changes: 6 additions & 9 deletions fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ import (
"bytes"
"errors"
"fmt"
"github.com/klauspost/compress/gzip"
"github.com/klauspost/compress/zstd"
"github.com/newacorn/brotli"
pbytes "github.com/newacorn/goutils/bytes"
"github.com/newacorn/goutils/compress"
"github.com/newacorn/goutils/http"
pool "github.com/newacorn/simple-bytes-pool"
"github.com/puzpuzpuz/xsync/v3"
"github.com/valyala/bytebufferpool"
"html"
"io"
"io/fs"
Expand All @@ -22,15 +28,6 @@ import (
"sync/atomic"
"time"
"unsafe"
"utils/compress"
"utils/http"

//"utils/http"

"github.com/andybalholm/brotli"
"github.com/klauspost/compress/gzip"
"github.com/klauspost/compress/zstd"
"github.com/valyala/bytebufferpool"
)

// ServeFileBytesUncompressed returns HTTP response containing file contents
Expand Down
Binary file modified fs.go.fasthttp.zst
Binary file not shown.
2 changes: 1 addition & 1 deletion fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"bytes"
"fmt"
"github.com/gookit/goutil/testutil/assert"
"github.com/newacorn/goutils/compress"
"github.com/puzpuzpuz/xsync/v3"
"github.com/valyala/fasthttp"
"github.com/valyala/fasthttp/fasthttputil"
Expand All @@ -20,7 +21,6 @@ import (
"testing"
"time"
"unicode/utf8"
"utils/compress"
)

type TestLogger struct {
Expand Down
4 changes: 2 additions & 2 deletions fs_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"errors"
"fmt"
pbytes "github.com/newacorn/goutils/bytes"
"github.com/newacorn/goutils/compress"
"github.com/newacorn/goutils/http"
pool "github.com/newacorn/simple-bytes-pool"
"github.com/puzpuzpuz/xsync/v3"
"html"
Expand All @@ -19,8 +21,6 @@ import (
"sync/atomic"
"time"
"unsafe"
"utils/compress"
"utils/http"
)

// MaxSmallFileSize Files bigger than this size are sent with sendfile.
Expand Down
24 changes: 17 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,33 @@ go 1.22.5
toolchain go1.22.6

require (
github.com/andybalholm/brotli v1.1.0
github.com/andybalholm/brotli v1.1.1
github.com/bytedance/gopkg v0.1.1
github.com/google/brotli/go/cbrotli v0.0.0-20240715182736-39bcecf4559f
github.com/gookit/goutil v0.6.17
github.com/klauspost/compress v1.17.9
github.com/klauspost/compress v1.17.11
github.com/newacorn/goutils v0.0.0-20241020013356-15e1e4834c16
github.com/newacorn/simple-bytes-pool v0.0.0-20241019202108-1ca97a547e01
github.com/pkg/errors v0.9.1
github.com/puzpuzpuz/xsync/v3 v3.4.0
github.com/rs/zerolog v1.33.0
github.com/valyala/bytebufferpool v1.0.0
github.com/valyala/fasthttp v1.55.0
github.com/valyala/tcplisten v1.0.0
github.com/xyproto/randomstring v1.0.5
golang.org/x/crypto v0.25.0
golang.org/x/net v0.27.0
golang.org/x/sys v0.25.0
golang.org/x/sys v0.26.0
golang.org/x/text v0.18.0
)

replace github.com/klauspost/compress v1.17.11 => github.com/newacorn/compress v0.0.0-20241020002001-be411bf4ca21

require (
github.com/google/brotli/go/cbrotli v0.0.0-20240715182736-39bcecf4559f // indirect
github.com/gookit/color v1.5.4 // indirect
github.com/newacorn/goutils v0.0.0-20241019181402-f6ad1a3f638b // indirect
github.com/newacorn/simple-bytes-pool v0.0.0-20241019181444-92b43ac0f160 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/newacorn/brotli v0.0.0-20241020004304-ec39f4a41287 // indirect
github.com/newacorn/cbrotli/go/cbrotli v0.0.0-20241020012012-8fb4aa8de81a // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
golang.org/x/text v0.18.0 // indirect
)
79 changes: 60 additions & 19 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,25 +1,59 @@
github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M=
github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY=
github.com/andybalholm/brotli v1.1.1 h1:PR2pgnyFznKEugtsUo0xLdDop5SKXd5Qf5ysW+7XdTA=
github.com/andybalholm/brotli v1.1.1/go.mod h1:05ib4cKhjx3OQYUY22hTVd34Bc8upXjOLL2rKwwZBoA=
github.com/bytedance/gopkg v0.1.1 h1:3azzgSkiaw79u24a+w9arfH8OfnQQ4MHUt9lJFREEaE=
github.com/bytedance/gopkg v0.1.1/go.mod h1:576VvJ+eJgyCzdjS+c4+77QF3p7ubbtiKARP3TxducM=
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/ebitengine/purego v0.8.0 h1:JbqvnEzRvPpxhCJzJJ2y0RbiZ8nyjccVUrSM3q+GvvE=
github.com/ebitengine/purego v0.8.0/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ=
github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/google/brotli/go/cbrotli v0.0.0-20240715182736-39bcecf4559f h1:gMt4P0lp6wvToXa3UD8JocJxpt0yyXdG8SLfLMxkpKM=
github.com/google/brotli/go/cbrotli v0.0.0-20240715182736-39bcecf4559f/go.mod h1:nOPhAkwVliJdNTkj3gXpljmWhjc4wCaVqbMJcPKWP4s=
github.com/gookit/color v1.5.4 h1:FZmqs7XOyGgCAxmWyPslpiok1k05wmY3SJTytgvYFs0=
github.com/gookit/color v1.5.4/go.mod h1:pZJOeOS8DM43rXbp4AZo1n9zCU2qjpcRko0b6/QJi9w=
github.com/gookit/goutil v0.6.16 h1:9fRMCF4X9abdRD5+2HhBS/GwafjBlTUBjRtA5dgkvuw=
github.com/gookit/goutil v0.6.16/go.mod h1:op2q8AoPDFSiY2+qkHxcBWQMYxOLQ1GbLXqe7vrwscI=
github.com/gookit/goutil v0.6.17 h1:SxmbDz2sn2V+O+xJjJhJT/sq1/kQh6rCJ7vLBiRPZjI=
github.com/gookit/goutil v0.6.17/go.mod h1:rSw1LchE1I3TDWITZvefoAC9tS09SFu3lHXLCV7EaEY=
github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA=
github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
github.com/newacorn/goutils v0.0.0-20241019173925-1c4a12c3439b h1:ADkm6B8+9M63SU+aYdFCmXMSfS8Eaaox/Ve2KdKzlqI=
github.com/newacorn/goutils v0.0.0-20241019173925-1c4a12c3439b/go.mod h1:NsSKXgKzrgEUa+t0dACbtVmLThFdAc9evTDjVMyilLw=
github.com/newacorn/goutils v0.0.0-20241019181402-f6ad1a3f638b h1:UnhOhzqoOx/LQtLL7kB2LbwXki05nezWbzW4/IYBdG8=
github.com/newacorn/goutils v0.0.0-20241019181402-f6ad1a3f638b/go.mod h1:NsSKXgKzrgEUa+t0dACbtVmLThFdAc9evTDjVMyilLw=
github.com/newacorn/simple-bytes-pool v0.0.0-20241019181444-92b43ac0f160 h1:kEqyT2t5o0G7n7VONiBterh1JJA6MGl1j97eOaDWXh8=
github.com/newacorn/simple-bytes-pool v0.0.0-20241019181444-92b43ac0f160/go.mod h1:4OrzMR8g8mqfdFC6YF4uQbyzcCUeNbPesOV5Xm4oClE=
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4=
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/newacorn/brotli v0.0.0-20241020004304-ec39f4a41287 h1:RBVcYL27/O7ylBgSpucHbRw943cwcc4uGYbfoclASkM=
github.com/newacorn/brotli v0.0.0-20241020004304-ec39f4a41287/go.mod h1:/pzk9egPuUK+bgPWDjaofY1UPUmbNZnZSCxZOC1nf70=
github.com/newacorn/cbrotli/go/cbrotli v0.0.0-20241020012012-8fb4aa8de81a h1:aHOBJO8IpRxrKFuvkLvhL8J4KJazPpBFFNv/I2kwrgM=
github.com/newacorn/cbrotli/go/cbrotli v0.0.0-20241020012012-8fb4aa8de81a/go.mod h1:d24uOm/AOrVSxT6wVCHPnkdXFseNsVrChPJy7ns4/+M=
github.com/newacorn/compress v0.0.0-20241020002001-be411bf4ca21 h1:8XicvZROKa/PNx1w0VgkX6ou6xChrepVty8k7m3ijyM=
github.com/newacorn/compress v0.0.0-20241020002001-be411bf4ca21/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
github.com/newacorn/goutils v0.0.0-20241020012208-0c3368a3c285 h1:YPSIJXH6KJRKbPFpmVay6+IRBXMtA4hZvIGXaHYu4xc=
github.com/newacorn/goutils v0.0.0-20241020012208-0c3368a3c285/go.mod h1:qjtV7AwRt23XbTQ5yiyXoWmFwU67TUGLpMl6//knC6s=
github.com/newacorn/goutils v0.0.0-20241020013356-15e1e4834c16 h1:RDHDno4av2jsRnQN9+98OQvMaXojAB2hmIGzgJiP1xE=
github.com/newacorn/goutils v0.0.0-20241020013356-15e1e4834c16/go.mod h1:qjtV7AwRt23XbTQ5yiyXoWmFwU67TUGLpMl6//knC6s=
github.com/newacorn/simple-bytes-pool v0.0.0-20241019202108-1ca97a547e01 h1:6vk+EI/swL10uzvOd6d0L1f6N4Fl2diV/OfQ/9RKKSg=
github.com/newacorn/simple-bytes-pool v0.0.0-20241019202108-1ca97a547e01/go.mod h1:xFGWrrp5OYMtHB62gXV/ZI9C59pvJCSRJ3kMryw9+EY=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw=
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
github.com/puzpuzpuz/xsync/v3 v3.4.0 h1:DuVBAdXuGFHv8adVXjWWZ63pJq+NRXOWVXlKDBZ+mJ4=
github.com/puzpuzpuz/xsync/v3 v3.4.0/go.mod h1:VjzYrABPabuM4KyBh1Ftq6u8nhwY5tBPKP9jpmh0nnA=
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8=
github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss=
github.com/shirou/gopsutil/v4 v4.24.9 h1:KIV+/HaHD5ka5f570RZq+2SaeFsb/pq+fp2DGNWYoOI=
github.com/shirou/gopsutil/v4 v4.24.9/go.mod h1:3fkaHNeYsUFCGZ8+9vZVWtbyM1k2eRnlL+bWO8Bxa/Q=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU=
github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI=
github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk=
github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.55.0 h1:Zkefzgt6a7+bVKHnu/YaYSOPfNYNisSVBo/unVCf8k8=
Expand All @@ -28,15 +62,22 @@ github.com/valyala/tcplisten v1.0.0 h1:rBHj/Xf+E1tRGZyWIWwJDiRY0zc1Js+CV5DqwacVS
github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU=
github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E=
github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0=
github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 h1:MDc5xs78ZrZr3HMQugiXOAkSZtfTpbJLDr/lwfgO53E=
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 h1:2dVuKD2vS7b0QIHQbpyTISPd0LeHDbnYEryqj5Q1ug8=
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY=
golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys=
golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224=
golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
2 changes: 1 addition & 1 deletion header.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"bytes"
"errors"
"fmt"
"github.com/newacorn/goutils/compress"
"io"
"sync"
"sync/atomic"
"time"
"utils/compress"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"errors"
"fmt"
pbufio "github.com/newacorn/goutils/bufio"
ucompress "github.com/newacorn/goutils/compress"
pio "github.com/newacorn/goutils/io"
pool "github.com/newacorn/simple-bytes-pool"
"github.com/valyala/bytebufferpool"
Expand All @@ -19,7 +20,6 @@ import (
"strings"
"sync"
"time"
ucompress "utils/compress"
)

var (
Expand Down
Loading

0 comments on commit d48a746

Please sign in to comment.