You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Kelvin R. Lawrence (Jira)" <ji...@apache.org> on 2021/02/04 20:29:00 UTC

[jira] [Commented] (TINKERPOP-2379) Consistent defaults and initialization APIs for drivers

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

Kelvin R. Lawrence commented on TINKERPOP-2379:
-----------------------------------------------

Related to driver defaults/initialization consistency:

The Python client does not specify a default max content length. It inherits whatever Tornado defaults to (10mb in 4.5.3 for example). However, if Kerberos is used, the code in the client hard codes 65536 into the web socket frame header bits in that specific case. This will lead to different behavior and potentially unexpected frame size exceeded errors errors. We should really have consistent defaults across all the clients.

There is a separate Jira open to add the ability in the Python client for the user to override the max content length. No such feature exists today. 

> Consistent defaults and initialization APIs for drivers
> -------------------------------------------------------
>
>                 Key: TINKERPOP-2379
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2379
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: driver
>    Affects Versions: 3.4.6
>            Reporter: Stephen Mallette
>            Priority: Minor
>
> Some drivers allow the connection URL to be directly set which means that it is wholly configurable. For example, Javascript allows:
> {code}
> const g = traversal().withRemote(new DriverRemoteConnection('ws://localhost:8182/gremlin'));
> {code}
> Python allows something similar, but Java and .NET do not. I don't recall a reason for that inconsistency and there are times when it seems that such options would be helpful.
> In addition, some drivers will take a file for configuration and some will not. Furthermore, defaults for various settings are different from one driver to the next. 



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