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

JavaScript GLV: Connection should not try to open in the background

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.7
    • None
    • javascript
    • None

    Description

      There are several issues related to websocket connection opening that are surfaced when the there isn't a server listening in the provided address.

      To list the issues:

      • Open is made in the background, that could cause unhandledRejection.
      • Race condition between error handling and opening, causing the promise to resolve and/or the process to exit (depending on the case).

      We should refactor how Connection#open() is invoked by the Client to always check that open was previously called and fix the race condition.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jorgebg Jorge Bay

            Dates

              Created:
              Updated:

              Slack

                Issue deployment