https://github.com/devlights/go-listener-with-backlog-example
TCP Listener with Backlog examples by golang
https://github.com/devlights/go-listener-with-backlog-example
Last synced: about 2 months ago
JSON representation
TCP Listener with Backlog examples by golang
- Host: GitHub
- URL: https://github.com/devlights/go-listener-with-backlog-example
- Owner: devlights
- License: mit
- Created: 2023-01-25T07:34:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-25T08:00:36.000Z (over 2 years ago)
- Last Synced: 2025-02-12T08:58:25.726Z (4 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-listener-with-backlog-example
TCP Listener with Backlog examples by golang

## Go version
```shell script
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal$ go version
go version go1.19.4 linux/amd64
```## How to Run
### Using [go-task](https://taskfile.dev/)
```sh
$ task run
task: [run] go run .
[With Context] 07:56:16 start
[With Context] 07:56:17 dial tcp4 127.0.0.1:33333: i/o timeout
[With Context] 07:56:17 done
```## REFERENCES
- https://github.com/golang/go/issues/39000
- https://github.com/golang/go/issues/41470
- https://github.com/valyala/tcplisten/blob/master/tcplisten.go
- https://stackoverflow.com/a/49593356
- https://stackoverflow.com/a/46279623
- https://meetup-jp.toast.com/1509