Len returns the session counts in the pool.
()
| 246 | |
| 247 | // Len returns the session counts in the pool. |
| 248 | func (p *SessionPool) Len() (total int) { |
| 249 | p.RLock() |
| 250 | defer p.RUnlock() |
| 251 | |
| 252 | for _, s := range p.sessions { |
| 253 | total += s.Len() |
| 254 | } |
| 255 | return |
| 256 | } |
no outgoing calls