You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2019/09/04 20:16:50 UTC

[tinkerpop] 05/06: Close the BytesIO stream when done processing it.

This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch TINKERPOP-2279
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit caad2e20ae9edb296df65eea3d478a5048990ce8
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Wed Sep 4 15:48:15 2019 -0400

    Close the BytesIO stream when done processing it.
---
 gremlin-python/src/main/jython/gremlin_python/driver/serializer.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gremlin-python/src/main/jython/gremlin_python/driver/serializer.py b/gremlin-python/src/main/jython/gremlin_python/driver/serializer.py
index ef31819..e4b81db 100644
--- a/gremlin-python/src/main/jython/gremlin_python/driver/serializer.py
+++ b/gremlin-python/src/main/jython/gremlin_python/driver/serializer.py
@@ -262,6 +262,8 @@ class GraphBinarySerializersV1(object):
         meta_attrs = self._graphbinary_reader.toObject(b, graphbinaryV1.DataType.map, nullable=False)
         result = self._graphbinary_reader.toObject(b)
 
+        b.close()
+
         msg = {'requestId': request_id,
                'status': {'code': status_code,
                           'message': status_msg,