func (s *state) IsBroken() bool {
	select {
	case <-s.broken:
		return true
	default:
	}
	if err := s.Ping(); err != nil {
		logger.Debugf("connection ping failed: %v", err)
		return true
	}
	return false
}
// IsBroken implements api.Connection.
IsBroken implements api.Connection.
// IsBroken implements api . Connection .
func (s *state) IsBroken() bool {
	select {
	case <-s.broken:
		return true
	default:
	}
	if err := s.Ping(); err != nil {
		logger.Debugf("connection ping failed: %v", err)
		return true
	}
	return false
}
func ( s * state ) IsBroken ( ) bool { select { case <- s . broken : return true default : } if err := s . Ping ( ) ; err != nil { logger . Debugf ( " " , err ) return true } return false }
IsBroken implements api.Connection.
IsBroken implements api . Connection .