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

Gaurav Saini commented on TINKERPOP-1886:
-----------------------------------------

[~spmallette], loop.run_sync executes the passed function and then it closes. 
The WebSocketClientConnection object which is returned by 
websocket.websocket_connect makes use of PeriodicCallback which in turn makes 
use of the IOLoop to schedule ping requests. Since your loop would close as 
soon as the WebSocketClientConnection object is returned, there are no pings 
scheduled.

> Gremlin Python driver to periodically issue ping / heartbeat to gremlin server
> ------------------------------------------------------------------------------
>
>                 Key: TINKERPOP-1886
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1886
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: python
>    Affects Versions: 3.3.1
>            Reporter: Harshvardhan
>            Priority: Major
>
> Gremlin Python driver currently  does not send any ping request to the 
> gremlin server. As a result, the websocket channel gets closed by the HAProxy 
> load balancer after a period of inactivity.
>  
> Workarounds have been suggested in the discussion listed below.
> Link to google groups discussion: 
> https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/gremlin-users/bMs3OUPlBQI/q3fYU-9BBAAJ



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

Reply via email to