Skip to content

Commit e6020a7

Browse files
authored
Merge c5ba2bb into c561411
2 parents c561411 + c5ba2bb commit e6020a7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

security/backends/elasticsearch/connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def connect(self, init_documents):
1515
raise ImproperlyConfigured('You must set "SECURITY_ELASTICSEARCH_DATABASE" setting')
1616

1717
connection.connection = connections.create_connection(
18-
**settings.ELASTICSEARCH_DATABASE
18+
**settings.ELASTICSEARCH_DATABASE,
19+
timeout=settings.ELASTICSEARCH_TIMEOUT,
1920
)
2021
if init_documents:
2122
self.init_documents()

security/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
'ELASTICSEARCH_CLEAN_LOGS_DELETE_ATTEMPTS': 10,
6060
'ELASTICSEARCH_CLEAN_LOGS_DELETE_ATTEMPT_SLEEP': 5,
6161
'ELASTICSEARCH_MAX_NUMBER_OF_TERMS': 65536,
62+
'ELASTICSEARCH_TIMEOUT': 10,
6263
'SQL_CLEAN_LOGS_DELETE_BATCH_SIZE': 1000,
6364
'BACKEND_WRITERS': None,
6465
'BACKEND_READER': None,

0 commit comments

Comments
 (0)