aboutsummaryrefslogtreecommitdiff
path: root/reuseport
AgeCommit message (Collapse)AuthorFilesLines
2023-11-08chore: Remove redundant build constraint (#1650)Gravatar Oleksandr Redko 1-1/+0
2022-08-14Add Go 1.19 Support (#1355)v1.39.0Gravatar Aoang 1-2/+2
* 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-06-28Fix apparent documentation typo (#1330)Gravatar kayos 1-1/+1
2022-06-26Support AIX SO_REUSEADDR and SO_REUSEPORT (#1328)v1.38.0Gravatar zhangyongding 2-2/+27
* Update reuseport.go * Create reuseport_aix.go
2022-04-01Use %v for errors and %q for strings (#1262)v1.35.0Gravatar Erik Dubbelboer 3-4/+4
Mostly in tests.
2022-03-04Fix windows tests (#1235)Gravatar Erik Dubbelboer 1-84/+11
* Fix windows tests Just ignore /../ tests on windows until we have proper suppor. * Remove useless test code This code was basically just testing if tcp works. To test if SO_REUSEPORT works we only have to try to listen on the same addr:port twice. * Fix test
2021-09-02compatible with new build tag (#1087)Gravatar tyltr 1-0/+1
2021-08-18Add Go 1.17 support (#1074)Gravatar Erik Dubbelboer 1-1/+1
* Add Go 1.17 support * Increase test timeouts
2021-06-18Lower go test timeGravatar Erik Dubbelboer 1-1/+4
2020-07-17Update linting (#851)Gravatar Erik Dubbelboer 1-1/+1
2020-06-04Support Windows SO_REUSEADDR (#822)Gravatar Andy Pan 3-23/+15
* Support Windows SO_REUSEADDR * Update the comment * Renew comment of the Listen method on Windows
2019-10-23Format errors (#679)Gravatar ZhangYunHao 1-1/+1
* format errors * Server is a type name * Fix typo
2019-09-28go fmt ./...Gravatar Erik Dubbelboer 1-7/+7
2019-08-30Add stub/wrapper for reuseport.Listen on Windows platforms (#638)Gravatar andrewheberle 5-12/+47
* Create Windows stub for reuseport.Listen
2018-09-24Remove race condition from testGravatar Erik Dubbelboer 1-1/+1
2018-08-12ci, reuseport, writer: update travis config and goimports -w on whole projectGravatar Kirill Danshin 1-1/+2
Signed-off-by: Kirill Danshin <kirill@danshin.pro>
2017-11-08attempt #2 to fix TestTCP6 on travis: run the test only if local tcp6 ↵Gravatar Aliaksandr Valialkin 1-1/+17
interface is present
2017-11-08an attempt to fix TestTCP6 on travis. It looks like travis doesnt know about ↵Gravatar Aliaksandr Valialkin 1-1/+1
`ip6-localhost`. Substitute it with [::1]
2016-09-13switch reuseport to github.com/valyala/tcplistenGravatar Aliaksandr Valialkin 3-147/+13
2016-09-06reuseport: enable TCP_FASTOPENGravatar Aliaksandr Valialkin 3-65/+103
2016-08-29reuseport: reduce the number of context switches incurred the listener via ↵Gravatar Aliaksandr Valialkin 3-13/+28
TCP_DEFER_ACCEPT
2016-06-24Enable IPv6 for reuseport (#122)Gravatar Justin Seely 2-13/+35
2016-06-13reuseport: set FD_CLOSEEXEC for the sockets (#117)Gravatar Anton Tyurin 1-1/+7
Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
2016-05-16To make it compatible with the Rumprun unikernel (#98)Gravatar Denis Jannot 2-2/+2
* Update reuseport.go * Update reuseport_bsd.go
2016-05-10Fixed a typoGravatar Aliaksandr Valialkin 1-1/+1
2016-05-10Issue #93: added an example for reuseport.ListenerGravatar Aliaksandr Valialkin 1-0/+24
2016-05-10reuseport: close Listener in case of error (#94)Gravatar Anton Tyurin 1-0/+1
If closing of an underlying File returns error, a Listener will not be returned to a user and will not be closed as well. Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
2016-02-05Fixed golint warningsGravatar Aliaksandr Valialkin 3-3/+3
2016-01-11Use SO_REUSEPORT name instead of reusePortGravatar Aliaksandr Valialkin 3-3/+3
2015-12-03Added build tag to reuseport.go since it includes syscall package (accoding ↵Gravatar Aliaksandr Valialkin 1-0/+2
to https://www.youtube.com/watch?v=PAAkCSZUG1c :) )
2015-12-01Issue #12: added missing importGravatar Aliaksandr Valialkin 1-0/+4
2015-11-28Removed TCP_DEFER_ACCEPT from reuseport listening socket, since it has no ↵Gravatar Aliaksandr Valialkin 3-19/+0
measurable performance wins, but has a drawback that the established connection lifetime cannot be controlled by user program until the client sends initial request
2015-11-27Use deferred accept in reuseport.Listener. This should reduce the number of ↵Gravatar Aliaksandr Valialkin 3-2/+21
context switches for busy servers accepting a lot of new connections per second. Will test it, since google says TCP_DEFER_ACCEPT option is useless :)
2015-11-23Added missing package name to reuseportGravatar Aliaksandr Valialkin 1-1/+1
2015-11-22Added missing doc stringGravatar Aliaksandr Valialkin 1-0/+1
2015-11-20Set SO_REUSEADDR in reuseport.Listen() like standard net package doGravatar Aliaksandr Valialkin 1-0/+5
2015-11-20Renamed NewListener to Listener to be consistent with go's net packageGravatar Aliaksandr Valialkin 2-4/+4
2015-11-20Added net.Listener with reuseport supportGravatar Aliaksandr Valialkin 5-0/+220