[ 
https://issues.apache.org/jira/browse/TINKERPOP-3061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827655#comment-17827655
 ] 

ASF GitHub Bot commented on TINKERPOP-3061:
-------------------------------------------

tien opened a new pull request, #2525:
URL: https://github.com/apache/tinkerpop/pull/2525

   This solution try to resolve the concurrent initial unauthenticated requests 
problem described in 
[TINKERPOP-3063](https://issues.apache.org/jira/browse/TINKERPOP-3063), 
[TINKERPOP-2132](https://issues.apache.org/jira/browse/TINKERPOP-2132) & 
[TINKERPOP-3061](https://issues.apache.org/jira/browse/TINKERPOP-3061) by 
batching them for later processing when authentication handshake is in progress.




> Concurrent queries will break authentication on javascript driver
> -----------------------------------------------------------------
>
>                 Key: TINKERPOP-3061
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3061
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: javascript
>    Affects Versions: 3.6.6, 3.7.1
>            Reporter: Yang Xia
>            Priority: Major
>
> Reported by tien on Discord:
> {code:java}
> import gremlin from "gremlin";
> const g = gremlin.process.AnonymousTraversalSource.traversal().withRemote(
>   new gremlin.driver.DriverRemoteConnection("ws://localhost:8182/gremlin", {
>     authenticator: new gremlin.driver.auth.PlainTextSaslAuthenticator(
>       "admin",
>       "administrator"
>     ),
>   })
> );
> // This will throws: Failed to authenticate (401)
> await Promise.all([g.V().toList(), g.V().toList()]);
> // This works as expected
> await g.V().toList();
> await g.V().toList(); {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to