Commit Graph

1810 Commits

Author SHA1 Message Date
dependabot[bot] 69a68df4eb chore(deps): bump golang.org/x/net from 0.39.0 to 0.40.0 (#2003)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.39.0 to 0.40.0.
- [Commits](https://github.com/golang/net/compare/v0.39.0...v0.40.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-06 17:43:19 +09:00
dependabot[bot] 83fbe80f93 chore(deps): bump golang.org/x/crypto from 0.37.0 to 0.38.0 (#2002)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/crypto/compare/v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-06 17:14:27 +09:00
dependabot[bot] 51817a4eb6 chore(deps): bump golangci/golangci-lint-action from 7 to 8 (#2001)
* chore(deps): bump golangci/golangci-lint-action from 7 to 8

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 7 to 8.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v7...v8)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update lint version

* disable funcorder

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
2025-05-05 15:50:24 +09:00
Max Denushev 41a1449627 feat: move user values to Request structure (#1999)
Co-authored-by: Max Denushev <denushev@tochka.com>
2025-05-03 15:10:15 +09:00
osxtest 1345f42ede Add support for streaming identity-encoded or unknown length response bodies (#2000) 2025-05-03 13:51:32 +09:00
pj a05560dd7e implement early hints (#1996) v1.61.0 2025-04-21 13:01:35 +02:00
Erik Dubbelboer 48f3a2f423 Fix panic when perIPConn.Close is called multiple times (#1993)
This happens when a perIPConn is idle and closed during
Server.Shutdown() and then again closed by the WorkerFunc returning.
2025-04-12 04:36:07 +02:00
Yota Toyama e380d34bce Fix round robin addresses in dual stack dialing (#1995) 2025-04-11 15:00:19 +09:00
dependabot[bot] 4c71125994 chore(deps): bump golang.org/x/net from 0.38.0 to 0.39.0 (#1991)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.38.0 to 0.39.0.
- [Commits](https://github.com/golang/net/compare/v0.38.0...v0.39.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-08 13:51:29 +09:00
dependabot[bot] 76acf1443d chore(deps): bump securego/gosec from 2.22.2 to 2.22.3 (#1990)
Bumps [securego/gosec](https://github.com/securego/gosec) from 2.22.2 to 2.22.3.
- [Release notes](https://github.com/securego/gosec/releases)
- [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml)
- [Commits](https://github.com/securego/gosec/compare/v2.22.2...v2.22.3)

---
updated-dependencies:
- dependency-name: securego/gosec
  dependency-version: 2.22.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-07 07:43:20 +02:00
dependabot[bot] 236b2f3148 chore(deps): bump golang.org/x/crypto from 0.36.0 to 0.37.0 (#1988)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.36.0 to 0.37.0.
- [Commits](https://github.com/golang/crypto/compare/v0.36.0...v0.37.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-07 06:51:14 +02:00
dependabot[bot] 2629d9d869 chore(deps): bump golang.org/x/sys from 0.31.0 to 0.32.0 (#1989)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/sys/compare/v0.31.0...v0.32.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-07 06:30:14 +02:00
Erik Dubbelboer 752b0e7004 Remove idleConns mutex for every request (#1986)
Locking and unlocking a mutex multiple times per request is a major
slowdown that we can avoid with clever use of atomics.

Before:
```
BenchmarkServerGet100ReqPerConn10KClients-12    	 84167428	       867.7 ns/op
```
After:
```
BenchmarkServerGet100ReqPerConn10KClients-12    	187397954	       386.3 ns/op
```
v1.60.0
2025-04-02 05:43:14 +02:00
dependabot[bot] bf3f552c8e chore(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 (#1983)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-28 05:54:38 +01:00
Erik Dubbelboer 4891fc5304 Update golangci-lint to v2 (#1980) 2025-03-25 06:40:55 +01:00
Erik Dubbelboer 30b09beff1 Fix untyped int constant 4294967295
Fix: https://github.com/valyala/fasthttp/issues/1960
2025-03-13 04:58:07 +01:00
dependabot[bot] 4269e2d68c chore(deps): bump golang.org/x/net from 0.36.0 to 0.37.0 (#1971)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.37.0.
- [Commits](https://github.com/golang/net/compare/v0.36.0...v0.37.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-06 06:34:17 +01:00
dependabot[bot] 1353ca59f2 chore(deps): bump securego/gosec from 2.22.1 to 2.22.2 (#1972)
Bumps [securego/gosec](https://github.com/securego/gosec) from 2.22.1 to 2.22.2.
- [Release notes](https://github.com/securego/gosec/releases)
- [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml)
- [Commits](https://github.com/securego/gosec/compare/v2.22.1...v2.22.2)

---
updated-dependencies:
- dependency-name: securego/gosec
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-06 06:34:02 +01:00
dependabot[bot] 6c07c2f523 chore(deps): bump golang.org/x/net from 0.35.0 to 0.36.0 (#1968)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.35.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.35.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-05 05:26:51 +01:00
Erik Dubbelboer 69dc7b1280 Update the supported version to the same as Go itself (#1967)
Some of our dependences require the supported versions of Go.

For example github.com/golang/crypto now requires 1.23 or higher.
See: https://github.com/golang/crypto/commit/89ff08d67c4d79f9ac619aaf1f7388888798651fa

For more information on the new policy of the Go team see: https://github.com/golang/go/issues/69095

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-26 04:39:17 +01:00
Erik Dubbelboer b8969ed8dc Fix normalizeHeaderValue (#1963)
The fuzzer found some cases where it would panic.

The output of normalizeHeaderValue doesn't need to affect s.b and s.hLen
because the length of the normalized header will never be bigger, so it
can just be normalize in place without affecting the rest of the buffer.
2025-02-22 08:33:57 +01:00
Liu Ziming 31e34c5fe0 add related project for opentelemetry-go-auto-instrumentation (#1962)
* add related project for opentelemetry-go-auto-instrumentation

* Update README.md
2025-02-22 06:52:20 +01:00
dependabot[bot] 80d3e444a1 chore(deps): bump github.com/klauspost/compress from 1.17.11 to 1.18.0 (#1958)
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.17.11 to 1.18.0.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.17.11...v1.18.0)

---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-20 19:38:20 +09:00
Erik Dubbelboer 84f0231a53 Drop support for Go 1.21, add support for 1.24 (#1959) 2025-02-20 11:01:50 +01:00
Kashiwa 086a114445 fix: accept invalid headers with a space (#1953)
* fix: accept invalid headers with a space #1917

Make behavior consistent with net/http by allowing header keys and trailers containing spaces without canonicalizing them

* fix: lint paramTypeCombine

* fix: https://github.com/valyala/fasthttp/pull/1953#issuecomment-2660691298

* fix: golangci-lint nestingReduce
2025-02-19 19:49:48 +09:00
Kashiwa b59f47e3ee Refactor: split delAllArgs into delAllArgs and delAllArgsStable (#1945)
- Renamed the original `delAllArgs` method to `delAllArgsStable` to maintain stable behavior.
- Added a new `delAllArgs` method for non-stable functionality, improving runtime efficiency.
2025-02-19 19:48:10 +09:00
pj bb94b26bce add dummy support for js,wasm (#1955) v1.59.0 2025-02-14 14:17:11 +09:00
dependabot[bot] afc3991334 chore(deps): bump securego/gosec from 2.22.0 to 2.22.1 (#1956)
Bumps [securego/gosec](https://github.com/securego/gosec) from 2.22.0 to 2.22.1.
- [Release notes](https://github.com/securego/gosec/releases)
- [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml)
- [Commits](https://github.com/securego/gosec/compare/v2.22.0...v2.22.1)

---
updated-dependencies:
- dependency-name: securego/gosec
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-14 14:15:25 +09:00
Ivan Gabaldon 8e25db024a fix: compression priority (#1950)
* Initial update

* update remaining tests

* update .gitignore

* update another test, fix linting

* fix tests

* add missing Vary header
2025-02-12 14:58:38 +09:00
dependabot[bot] 243ce87d01 chore(deps): bump golang.org/x/net from 0.34.0 to 0.35.0 (#1952)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.34.0 to 0.35.0.
- [Commits](https://github.com/golang/net/compare/v0.34.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-11 06:54:21 +01:00
dependabot[bot] a250e77636 chore(deps): bump golang.org/x/crypto from 0.32.0 to 0.33.0 (#1951)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/crypto/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-10 14:37:18 +09:00
dependabot[bot] d2dc36f70a chore(deps): bump golang.org/x/sys from 0.29.0 to 0.30.0 (#1947)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.29.0 to 0.30.0.
- [Commits](https://github.com/golang/sys/compare/v0.29.0...v0.30.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-05 05:45:44 +01:00
Kashiwa c908d9c1ee Refactor trailer Field for Improved Memory Efficiency and Performance (#1928)
* refact: represent trailer filed by [][]byte instead of []argsKV

* fix: address golangci-lint warnings
2025-01-29 05:53:12 +01:00
Erik Dubbelboer 6371638230 DoRedirects should follow DisablePathNormalizing
DoRedirects was not using DisablePathNormalizing for the initial request
like the other Do function.

This change is not completely backwards compatible, but I can't imagine
a real world scenario in which this was the desired behaviour.
2025-01-26 02:47:05 +01:00
zhangyongding 195155e91b client: add interfaces for reading clientConn (#1941)
* client: add interfaces for reading clientConn

* client: add docs
2025-01-16 02:39:25 +01:00
Erik Dubbelboer b1c27881cb Try to fix tests with dial timeouts (#1940)
Use github.com and .io instead of example.com and google.com as they are
probably more reliable within Github actions.
2025-01-15 05:47:54 +01:00
dependabot[bot] 49942c7bcd chore(deps): bump golang.org/x/net from 0.33.0 to 0.34.0 (#1933)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.34.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.34.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-15 04:39:15 +01:00
zhangyongding 86fa5635ec client: Modify some interfaces to be exportable (#1936)
* client: Client {} supports custom Transport

* client: Modify some interfaces to be exportable
2025-01-15 04:37:04 +01:00
Kashiwa 321b998f31 Migrate valyala/tcplisten to this repo #1926 (#1929)
* chore: migrate https://github.com/valyala/tcplisten

* chore: merge upstream PR #6 from valyala/tcplisten: Backport TCP backlog size update of uint16->uint32 with Linux

* chore: merge upstream PR #10 from valyala/tcplisten: add support for dual-stack socket

* refactor: update to modern Go syntax

* doc: update README.md

* refactor: replace valyala/tcplisten package  with custom implementation

* fix: the goroutine calls T.Fatalf, which must be called in the same goroutine as the test

* fix: golangci-lint

* fix: add windows fallback

* fix: prevent integer overflow

* test: skip TestConfigDeferAccept, TestConfigFastOpen, TestConfigAll on non-linux OS

* fix: resolve overflow security issue and use wrapped error

* refactor: migrate from syscall to golang.org/x/sys/unix for better compatibility

* chore: merge upstream PR #8 from valyala/tcplisten: z/OS Compatibility

* refactor: rename tcplisten_bsd.go to tscplisten_other.go
2025-01-15 04:35:12 +01:00
dependabot[bot] 0a69906d89 chore(deps): bump securego/gosec from 2.21.4 to 2.22.0 (#1937)
Bumps [securego/gosec](https://github.com/securego/gosec) from 2.21.4 to 2.22.0.
- [Release notes](https://github.com/securego/gosec/releases)
- [Changelog](https://github.com/securego/gosec/blob/master/.goreleaser.yml)
- [Commits](https://github.com/securego/gosec/compare/v2.21.4...v2.22.0)

---
updated-dependencies:
- dependency-name: securego/gosec
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-10 13:49:40 +09:00
zhangyongding 655424dc53 client: Client {} supports custom Transport (#1935) 2025-01-10 12:01:33 +09:00
dependabot[bot] 4cd46d7f2d chore(deps): bump golang.org/x/crypto from 0.31.0 to 0.32.0 (#1934)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.32.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-07 05:50:13 +01:00
dependabot[bot] d83d37d822 chore(deps): bump golang.org/x/sys from 0.28.0 to 0.29.0 (#1932)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.28.0 to 0.29.0.
- [Commits](https://github.com/golang/sys/compare/v0.28.0...v0.29.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-06 06:06:21 +01:00
Kashiwa 2dfdfd86bf refactor: use buf in Args instead of bytebufferpool (#1931) 2025-01-03 00:05:43 +01:00
Oleksandr Redko ce283fb97c docs: improve README formatting and section headers (#1925)
This improves links rendering on pkg.go.dev.
2024-12-19 07:00:04 +01:00
dependabot[bot] 3579725cf6 chore(deps): bump golang.org/x/net from 0.32.0 to 0.33.0 (#1927)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-19 06:58:09 +01:00
Erik Dubbelboer 705ad0079a Fix parsing of bad urls with # (#1915)
http://google.com#@github.com parses incorrectly as github.com instead
of google.com.

Reported by Jesse Yang
2024-12-18 07:54:39 +01:00
Kashiwa bdcbf61348 fix: "identity" has been deprecated #1909 (#1919) 2024-12-15 05:32:21 +01:00
prepaser db50deedb0 fix: Method-preserving doRequestFollowRedirects (#1920) 2024-12-15 05:32:05 +01:00
dependabot[bot] 1574313981 chore(deps): bump golang.org/x/net from 0.31.0 to 0.32.0 (#1910)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/net/compare/v0.31.0...v0.32.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-12 20:02:39 +08:00