Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2110

Allow Connection on Different Path (from /gremlin)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • 3.3.4
    • 3.4.0, 3.3.5
    • driver
    • None

    Description

      Hi

      It appears that the Java driver for Gremlin clients only supports connecting to hosts on a fixed path (/gremlin). This is based on the code in tinkerpop/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Host.java 

      The function makeUriFromAddress doesn't provide a method for customizing the path to use. The need arises from proxying multiple server instances through a simple NGINX type proxy where you want to host each one under a different path, currently you would need to use a different hostname or port on the proxy which isn't so desirable. It would seem a relatively simple non breaking change and provides a little bit more flexibility in usage. Other clients like the Python one provide this naturally through passing of the websocket URL.

      Thanks

      Tony 

      Attachments

        Issue Links

          Activity

            People

              spmallette Stephen Mallette
              antonyscerri Antony Scerri
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: