sudo yum install stress
curl --unix-socket /path/to/app.sock localhost/api/endpoint
ssh -f -N -C -L 43306:mysql:3306 ssh-user@bastion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git src/net/file_unix.go src/net/file_unix.go | |
index 5b24c7d..9e581fc 100644 | |
--- src/net/file_unix.go | |
+++ src/net/file_unix.go | |
@@ -91,7 +91,7 @@ func fileListener(f *os.File) (Listener, error) { | |
case *TCPAddr: | |
return &TCPListener{fd}, nil | |
case *UnixAddr: | |
- return &UnixListener{fd, laddr.Name}, nil | |
+ return &UnixListener{fd: fd, path: laddr.Name, unlink: false}, nil |
$ openssl req -new -key server.key -out hoge.csr -sha256
# app
GRANT SELECT, INSERT, UPDATE, DELETE ON *.* TO app@'10.255.0.0/255.255.0.0' IDENTIFIED BY 'password'
# operator
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, REFERENCES ON *.* TO operator@'%' IDENTIFIED BY 'password'
# viewer
GRANT SELECT ON *.* TO viewer@'%' IDENTIFIED BY 'password'