Called to create a new connection with proper configuration. Intended for internal use only.
(self, endpoint, *args, **kwargs)
| 1627 | self._max_connections_per_host[host_distance] = max_connections |
| 1628 | |
| 1629 | def connection_factory(self, endpoint, *args, **kwargs): |
| 1630 | """ |
| 1631 | Called to create a new connection with proper configuration. |
| 1632 | Intended for internal use only. |
| 1633 | """ |
| 1634 | kwargs = self._make_connection_kwargs(endpoint, kwargs) |
| 1635 | return self.connection_class.factory(endpoint, self.connect_timeout, *args, **kwargs) |
| 1636 | |
| 1637 | def _make_connection_factory(self, host, *args, **kwargs): |
| 1638 | kwargs = self._make_connection_kwargs(host.endpoint, kwargs) |
no test coverage detected