summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/luasocket/test/find-connect-limit
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luasocket/test/find-connect-limit')
-rwxr-xr-xBuild/source/texk/web2c/luatexdir/luasocket/test/find-connect-limit32
1 files changed, 0 insertions, 32 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/find-connect-limit b/Build/source/texk/web2c/luatexdir/luasocket/test/find-connect-limit
deleted file mode 100755
index ad0c3f55302..00000000000
--- a/Build/source/texk/web2c/luatexdir/luasocket/test/find-connect-limit
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env lua
---[[
-Find out how many TCP connections we can make.
-
-Use ulimit to increase the max number of descriptors:
-
-ulimit -n 10000
-ulimit -n
-
-You'll probably need to be root to do this.
-]]
-
-require "socket"
-
-host = arg[1] or "google.com"
-port = arg[2] or 80
-
-connections = {}
-
-repeat
- c = assert(socket.connect(hostip or host, 80))
- table.insert(connections, c)
-
- if not hostip then
- hostip = c:getpeername()
- print("resolved", host, "to", hostip)
- end
-
- print("connection #", #connections, c, "fd", c:getfd())
-
-until false
-