GitHub user davebshow opened a pull request:
https://github.com/apache/tinkerpop/pull/515
TINKERPOP-1581 Gremlin-Python driver connection is not thread safe.
https://issues.apache.org/jira/browse/TINKERPOP-1581
This was a simple fix. The `DriverRemoteConnection.__init__` method no
longer ignores the `loop` kwarg passed by user. I added two tests using threads
as well. One demonstrates how not passing an `IOLoop`, which was in effect the
behavior before this PR, will cause a `RuntimeError`. The other shows how you
can now pass an `IOLoop` for each thread to avoid this problem.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/tinkerpop TINKERPOP-1581
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tinkerpop/pull/515.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #515
----
commit 2f3386daed8323b77aa48ed92335f353d09d06c1
Author: davebshow <[email protected]>
Date: 2016-12-09T21:40:53Z
allow user to pass loop to DriverRemoteConnection. added multi-threaded
tests.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---