You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: go/vt/vtgate/plugin_mysql_server.go
+19-9Lines changed: 19 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,6 @@ package vtgate
19
19
import (
20
20
"flag"
21
21
"fmt"
22
-
"math"
23
22
"net"
24
23
"os"
25
24
"sync/atomic"
@@ -40,7 +39,6 @@ import (
40
39
)
41
40
42
41
var (
43
-
infinity=time.Duration(math.MaxInt64)
44
42
mysqlServerPort=flag.Int("mysql_server_port", -1, "If set, also listen for MySQL binary protocol connections on this port.")
45
43
mysqlServerBindAddress=flag.String("mysql_server_bind_address", "", "Binds on this address when listening to MySQL binary protocol. Useful to restrict listening to 'localhost' only for instance.")
46
44
mysqlServerSocketPath=flag.String("mysql_server_socket_path", "", "This option specifies the Unix socket file to use when listening for local connections. By default it will be empty and it won't listen to a unix socket")
@@ -55,9 +53,9 @@ var (
55
53
56
54
mysqlSlowConnectWarnThreshold=flag.Duration("mysql_slow_connect_warn_threshold", 0, "Warn if it takes more than the given threshold for a mysql connection to establish")
Copy file name to clipboardExpand all lines: go/vt/vtqueryserver/plugin_mysql_server.go
+19-11Lines changed: 19 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,9 @@ package vtqueryserver
19
19
import (
20
20
"flag"
21
21
"fmt"
22
-
"math"
23
22
"net"
24
23
"os"
25
24
"syscall"
26
-
"time"
27
25
28
26
"golang.org/x/net/context"
29
27
@@ -39,7 +37,6 @@ import (
39
37
)
40
38
41
39
var (
42
-
infinity=time.Duration(math.MaxInt64)
43
40
mysqlServerPort=flag.Int("mysqlproxy_server_port", -1, "If set, also listen for MySQL binary protocol connections on this port.")
44
41
mysqlServerBindAddress=flag.String("mysqlproxy_server_bind_address", "", "Binds on this address when listening to MySQL binary protocol. Useful to restrict listening to 'localhost' only for instance.")
45
42
mysqlServerSocketPath=flag.String("mysqlproxy_server_socket_path", "", "This option specifies the Unix socket file to use when listening for local connections. By default it will be empty and it won't listen to a unix socket")
@@ -52,9 +49,9 @@ var (
52
49
53
50
mysqlSlowConnectWarnThreshold=flag.Duration("mysqlproxy_slow_connect_warn_threshold", 0, "Warn if it takes more than the given threshold for a mysql connection to establish")
0 commit comments