()
| 168 | } |
| 169 | |
| 170 | func (p *Pool) makeOne() { |
| 171 | go func() { |
| 172 | if p.inc() { |
| 173 | if c, err := p.build(); err == nil { |
| 174 | p.clients <- c |
| 175 | } else { |
| 176 | p.lastBuildErr = ×tampedErr{err, time.Now()} |
| 177 | p.dec() |
| 178 | } |
| 179 | } |
| 180 | }() |
| 181 | } |
| 182 | |
| 183 | func startTLS(c *client, t *tls.Config) (bool, error) { |
| 184 | if ok, _ := c.Extension("STARTTLS"); !ok { |