[ 
https://issues.apache.org/jira/browse/TINKERPOP-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jorge Bay updated TINKERPOP-2381:
---------------------------------
    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.

  was:
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.


> 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
>            Priority: Major
>
> 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.



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

Reply via email to