Comments (2)
yepp, my bad. Was an old Go version.
Thanks for the great work.
from wiretap.
According to https://tip.golang.org/doc/go1.19, version 1.19 should be raising this limit to the max allowed by default:
On Unix operating systems, Go programs that import package os now automatically increase the open file limit (RLIMIT_NOFILE) to the maximum allowed value; that is, they change the soft limit to match the hard limit. This corrects artificially low limits set on some systems for compatibility with very old C programs using the select system call. Go programs are not helped by that limit, and instead even simple programs like gofmt often ran out of file descriptors on such systems when processing many files in parallel. One impact of this change is that Go programs that in turn execute very old C programs in child processes may run those programs with too high a limit. This can be corrected by setting the hard limit before invoking the Go program.
I tested with the following on a Linux machine with a soft limit of 1024:
var limit syscall.Rlimit
err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &limit)
if err != nil {
panic(err.Error())
}
fmt.Printf("%v cur, %v max\n", limit.Cur, limit.Max)
Output:
1048576 cur, 1048576 max
Are you using Go 1.19?
from wiretap.
Related Issues (20)
- Simple connect without RELAY + E2EE? HOT 5
- Not closing connection on RST HOT 1
- TCP Keepalive not forwarded to upstream origin server. HOT 9
- SYN-SENT userland timeout HOT 3
- High Memory usage per TCP connection HOT 11
- Using the client as a "proxy" server HOT 1
- WT & masscan. Only the first open port is reported HOT 3
- Feature Request: Reverse Port Forwarding HOT 4
- Feature request: Retrieve stats from WT-EXIT HOT 3
- Feature Request: Spawn a PTY shell on WT-EXIT HOT 3
- Feature Request: Allow specifying server in "add client" command HOT 5
- docker test setup / Invalid MAC of handshake HOT 2
- Standalone mode? HOT 3
- Fix code scanning alert - Incorrect conversion between integer types
- Error after a successful DNS query terminates server process HOT 1
- Multiple clients in "outbound" mode HOT 2
- UPnP HOT 1
- Gorgeous diagrams :heart_eyes: HOT 1
- About Nested Tunnels HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wiretap.