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

Driver hangs if SSL enabled on server but not on client

Details

    Description

      Start Gremlin Server with SSL turned on, then try to connect with:

      cluster = org.apache.tinkerpop.gremlin.driver.Cluster.build().create()
      client = cluster.connect()
      client.init()
      

      The init() (or submit() for that matter) just hangs - would be nice to get a "You'd best enable SSL, fool!" kind of message .

      Attachments

        Activity

          Ok this should be resolved. Seems like it was hanging when the websocket handshake couldn't be made due to the invalid SSL setting on the driver side. Working better now - at least we get a TimeoutException now:

          gremlin> cluster = org.apache.tinkerpop.gremlin.driver.Cluster.build().create()
          ==>localhost/127.0.0.1:8182
          gremlin> client = cluster.connect()
          ==>org.apache.tinkerpop.gremlin.driver.Client$ClusteredClient@1a1ed4e5
          gremlin> client.init()
          WARN  org.apache.tinkerpop.gremlin.driver.Client  - Could not initialize connection pool for Host{address=localhost/127.0.0.1:8182, hostUri=ws://localhost:8182/gremlin} - will try later
          ==>org.apache.tinkerpop.gremlin.driver.Client$ClusteredClient@1a1ed4e5
          gremlin> client.submit("1+1").all().get()
          java.lang.RuntimeException: java.util.concurrent.TimeoutException: Timed out waiting for an available host.
          Display stack trace? [yN] y
          
          spmallette Stephen Mallette added a comment - Ok this should be resolved. Seems like it was hanging when the websocket handshake couldn't be made due to the invalid SSL setting on the driver side. Working better now - at least we get a TimeoutException now: gremlin> cluster = org.apache.tinkerpop.gremlin.driver.Cluster.build().create() ==>localhost/127.0.0.1:8182 gremlin> client = cluster.connect() ==>org.apache.tinkerpop.gremlin.driver.Client$ClusteredClient@1a1ed4e5 gremlin> client.init() WARN org.apache.tinkerpop.gremlin.driver.Client - Could not initialize connection pool for Host{address=localhost/127.0.0.1:8182, hostUri=ws: //localhost:8182/gremlin} - will try later ==>org.apache.tinkerpop.gremlin.driver.Client$ClusteredClient@1a1ed4e5 gremlin> client.submit( "1+1" ).all().get() java.lang.RuntimeException: java.util.concurrent.TimeoutException: Timed out waiting for an available host. Display stack trace? [yN] y

          People

            spmallette Stephen Mallette
            spmallette Stephen Mallette
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: