MCPcopy Create free account
hub / github.com/TalkingData/owl / Connect

Method Connect

common/tcp/server.go:104–110  ·  view source on GitHub ↗
(addr string, handler Handler)

Source from the content-addressed store, hash-verified

102}
103
104func (srv *Server) Connect(addr string, handler Handler) (*Session, error) {
105 conn, err := net.DialTimeout("tcp", addr, time.Duration(time.Second*5))
106 if err != nil {
107 return nil, err
108 }
109 return srv.newSession(conn, handler), nil
110}
111
112//在ListenAndServe之前调用
113func (srv *Server) SetMaxPacketSize(size uint32) {

Callers 5

dialCFCMethod · 0.80
dialRepeaterMethod · 0.80
InitMysqlConnPoolFunction · 0.80
DialCFCMethod · 0.80
InitMysqlConnPoolFunction · 0.80

Calls 1

newSessionMethod · 0.95

Tested by

no test coverage detected