aboutsummaryrefslogtreecommitdiff
path: root/fasthttputil
AgeCommit message (Collapse)AuthorFilesLines
2023-11-24chore: Use 'any' instead of 'interface{}' (#1666)Gravatar Oleksandr Redko 1-1/+1
gofmt -w -r "interface{} -> any" -l .
2023-09-15chore: move rsa.key, rsa.pem to test variables (#1621)Gravatar Ilya Selivanau 3-49/+51
2023-06-13Enable gofumpt linter; format code `gofumpt -w .` (#1576)v1.48.0Gravatar Oleksandr Redko 1-6/+3
2023-05-07Fix tests (#1552)Gravatar Erik Dubbelboer 1-12/+0
2023-02-15test: close response body (#1496)Gravatar Oleksandr Redko 1-0/+1
2023-02-11Refactor golangci-lint config and remove redundant nolints (#1486)Gravatar Oleksandr Redko 1-2/+2
* Refactor golangci-lint config - Use golangci-lint-action for GitHub workflow. - Add additional golangci-lint run options. - Remove unused nolint directives. * Revert exclude-use-default option
2022-12-07add optional simulated addresses to pipeconn and inmemorylistener (#1449)Gravatar Tobias Krischer 4-6/+217
* add optional simulated addresses to pipeconn and inmemorylistener * add mutexes to addresses of pipeConn and InmemoryListener
2022-11-16Use time.Until(deadline) instead of -time.Since(deadline) (#1434)Gravatar Andy Pan 1-1/+1
2022-09-15Deprecate Go 1.15 (#1379)Gravatar Aoang 2-4/+2
* Dropping support for 1.15. * Replaces Go 1.16 Deprecated functions * Update test build flag * Fix import sort and comment * Update github.com/klauspost/compress to v1.15.9 https://github.com/klauspost/compress improved performance and changed Minimum version is 1.16, this should be the final supported release for Go 1.16 (https://github.com/klauspost/compress/commit/6d0019a95afa3221f7522d1f2eed0033b5e79470) .
2022-08-28Don't use tls ClientSessionCacheGravatar Erik Dubbelboer 3-114/+9
net/http doesn't use it either. Some servers have issues with this preventing fasthttp from working: https://github.com/valyala/fasthttp/issues/1364 https://github.com/valyala/fasthttp/issues/1296 https://github.com/valyala/fasthttp/issues/1335 https://github.com/valyala/fasthttp/issues/984 Also removed code that benchmarks crypto/tls as that has nothing to do with fasthttp.
2022-08-14Add Go 1.19 Support (#1355)v1.39.0Gravatar Aoang 1-4/+4
* Update Go Version to Go1.19.x And add cache * Fix CI Line endings * Update test CI Go Version to Go1.19.x And add cache * Update Gosec Security Scanner CI to securego/gosec@v2.12.0 * Format comment Go 1.19 adds support for links, lists, and clearer headings in doc comments. As part of this change, gofmt now reformats doc comments to make their rendered meaning clearer. See “Go Doc Comments” for syntax details and descriptions of common mistakes now highlighted by gofmt. As another part of this change, the new package go/doc/comment provides parsing and reformatting of doc comments as well as support for rendering them to HTML, Markdown, and text. ref: https://tip.golang.org/doc/go1.19 ref: https://tip.golang.org/doc/comment * Fix doc structure
2022-04-01Use %v for errors and %q for strings (#1262)v1.35.0Gravatar Erik Dubbelboer 3-37/+37
Mostly in tests.
2021-12-13Use %w to wrap errors (#1175)Gravatar Erik Dubbelboer 1-2/+2
2021-06-18Lower go test timeGravatar Erik Dubbelboer 2-0/+26
2020-07-17Update linting (#851)Gravatar Erik Dubbelboer 2-12/+12
2020-06-06Try TravisCI Windows (#828)Gravatar Erik Dubbelboer 1-1/+1
* Try TravisCI Windows * prefork is supported on windows with Reuseport=true * Bit longer timeouts for tests
2020-02-28feat: workflow to verify security using GoSec (#747)Gravatar RENAN.BASTOS 1-2/+2
* feat: workflow to valid security using GoSec * Update security.yml * Fix gosec problems These are all either false positives or os.Open operations done on filenames supplied by the fasthttp user which we have to assume is safe. * Just ignore some rules globally * Fix more warnings * No more warnings Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
2020-01-31Client should return ErrTimeout on timeout (#736)v1.9.0Gravatar Erik Dubbelboer 1-1/+18
Not ErrConnectionClosed which is incorrect. Fixes: https://github.com/valyala/fasthttp/issues/355
2020-01-12Resolve code issues from goreportcard.com (#725)Gravatar Andy Pan 1-0/+1
2019-11-16Run golangci-lint using a Github ActionGravatar Erik Dubbelboer 3-4/+4
2019-10-22fasthttputil: add errInmemoryListenerClosed (#678)Gravatar ZhangYunHao 1-4/+6
* add errInmemoryListenerClosed * Fix test error * Expose ErrInmemoryListenerClosed * rename
2019-10-16Document PipeConns not being safe for concurrent useGravatar Erik Dubbelboer 1-0/+3
2019-10-16fix 664 (#674)Gravatar rogercarter1 1-0/+2
2019-09-04Fix data race in fasthttputil.pipeConn (#645)Gravatar Kazushi Kitaya 2-2/+102
* add tests for fasthttputil.InmemoryListener * fix data race in pipeConn * update use of readDeadlineChLock
2019-02-02Make InmemoryListener.Dial return when the connection is acceptedGravatar Erik Dubbelboer 1-6/+16
This makes InmemoryListener deterministic which makes our tests much less flacky under high load or when GOMAXPROCS=1
2018-08-29go fmt ./...Gravatar Erik Dubbelboer 1-6/+6
2017-10-08A lot of typo fixesGravatar xPushkin 2-2/+2
2017-04-24fasthttputil: added TLS benchmarks for ECDSA certificatesGravatar Aliaksandr Valialkin 5-6/+48
Handshakes with ECDSA certificates are optimized much better comparing to RSA certificates - see https://github.com/golang/go/issues/20058 .
2017-04-20fasthttputil: added TLS benchmarks for handshakes with elliptic curvesGravatar Aliaksandr Valialkin 1-0/+25
2017-04-20fasthttputil: added BenchmarkTLSHandshakeWithoutClientSessionCacheGravatar Aliaksandr Valialkin 1-35/+73
2016-09-26fasthttputil.PipeConns: add read/write deadline supportGravatar Aliaksandr Valialkin 2-8/+170
2016-08-17Fixed a race when reading data from pipe. This fixes flacky tests involving ↵Gravatar Aliaksandr Valialkin 1-1/+7
fasthttputil.PipeConns: TestResponseGzipStream and TestWorkerPoolMaxWorkersCountSerial
2016-06-10Simplified PipeConns - now they properly handle the case when reader side is ↵Gravatar Aliaksandr Valialkin 2-127/+68
closed
2016-06-10Improved testPipeConnsCloseWhileReadWriteGravatar Aliaksandr Valialkin 1-15/+29
2016-06-10move inmemory_listener_timing_test to *_test package, so it could import ↵Gravatar Aliaksandr Valialkin 1-4/+5
fasthttp without cycle
2016-03-01Reduced concurrency and increased wait time in ↵Gravatar Aliaksandr Valialkin 1-2/+2
TestPipeConnsCloseWhileReadWriteConcurrent, so it may pass on slow CPUs and/or with -race flag
2016-03-01fasthttputil: added concurrent test for closing PipeConns while ↵Gravatar Aliaksandr Valialkin 1-1/+24
reading/writing from it
2016-03-01Fixed data races in PipeConnsGravatar Aliaksandr Valialkin 2-4/+56
2016-02-05Moved expvarhandler from fasthttputil to fasthttp rootGravatar Aliaksandr Valialkin 2-129/+0
2016-02-05Added docs to expvarGravatar Aliaksandr Valialkin 1-0/+2
2016-02-05Moved ExpvarHandler to a dedicated package in order to break import cycleGravatar Aliaksandr Valialkin 2-2/+2
2016-02-05typo fixGravatar Aliaksandr Valialkin 1-1/+1
2016-02-05added ability to filter ExpvarHandler output with regexpGravatar Aliaksandr Valialkin 2-6/+64
2016-02-05fasthttputil: added ExpvarHandler for serving variables exported via ↵Gravatar Aliaksandr Valialkin 3-0/+71
standard expvar package
2016-02-05fasthttputil: renamed files: pipe -> pipeconnsGravatar Aliaksandr Valialkin 2-0/+0
2016-02-05Fixed golint warningsGravatar Aliaksandr Valialkin 1-8/+9
2016-02-04fasthttputil: pre-allocate memory in newly created byteBufferGravatar Aliaksandr Valialkin 1-1/+3
2016-02-04fasthttputil: pipe errors cleanupGravatar Aliaksandr Valialkin 1-3/+6
2016-02-04fasthttputil: properly release pipeChanGravatar Aliaksandr Valialkin 1-7/+12
2016-02-04fasthttputil: added pipe testsGravatar Aliaksandr Valialkin 2-3/+152