This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Connection problems and possible fix #796
Closed
Description
From slack by @ajnavarro:
- Adding keepalive at the TCP level.
- Use NewListenerWithConfig and add a cfg.Listener that generates a Conn object we can handle.
net.Conn has two methods: https://golang.org/pkg/net/#TCPConn.SetKeepAlive and https://golang.org/pkg/net/#TCPConn.SetKeepAlivePeriod
Related: src-d/gitbase-spark-connector-enterprise#81