You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Jorge Bay (Jira)" <ji...@apache.org> on 2020/06/09 13:37:00 UTC

[jira] [Created] (TINKERPOP-2381) JavaScript GLV: Connection should not try to open in the background

Jorge Bay created TINKERPOP-2381:
------------------------------------

             Summary: JavaScript GLV: Connection should not try to open in the background
                 Key: TINKERPOP-2381
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2381
             Project: TinkerPop
          Issue Type: Bug
          Components: javascript
    Affects Versions: 3.4.7
            Reporter: Jorge Bay


There are several issues related to websocket connection opening that are surfaced when the there isn't a webserver 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)