(proxyName, addr string)
| 32 | } |
| 33 | |
| 34 | func newTransport(proxyName, addr string) *Transport { |
| 35 | t := &Transport{ |
| 36 | avgDialTime: int64(maxDialTimeout / 2), |
| 37 | conns: [typeTotalCount][]*persistConn{}, |
| 38 | expire: defaultExpire, |
| 39 | addr: addr, |
| 40 | stop: make(chan struct{}), |
| 41 | proxyName: proxyName, |
| 42 | } |
| 43 | return t |
| 44 | } |
| 45 | |
| 46 | // connManager manages the persistent connection cache for UDP and TCP. |
| 47 | func (t *Transport) connManager() { |
no outgoing calls
searching dependent graphs…