mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-06 05:34:26 +02:00
Do not leak database connections
This commit is contained in:
parent
1a0f63af61
commit
5f34baee0d
@ -355,7 +355,8 @@ class KmipEngine(object):
|
|||||||
def _process_batch(self, request_batch, batch_handling, batch_order):
|
def _process_batch(self, request_batch, batch_handling, batch_order):
|
||||||
response_batch = list()
|
response_batch = list()
|
||||||
|
|
||||||
self._data_session = self._data_store_session_factory()
|
with self._data_store_session_factory() as session:
|
||||||
|
self._data_session = session
|
||||||
|
|
||||||
for batch_item in request_batch:
|
for batch_item in request_batch:
|
||||||
error_occurred = False
|
error_occurred = False
|
||||||
|
@ -13,4 +13,4 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
__version__ = "0.11.0dev1"
|
__version__ = "0.11.0.dev1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user