与Neomodel关闭数据库连接

时间:2019-10-09 11:03:51

标签: python neo4j neomodel

我正在使用Neomodel lib,但在文档中找不到任何内容可以正确关闭与数据库的连接。我错过了什么吗?还是有办法访问基础连接并关闭它?

当python程序存在时,打开的连接将产生以下错误:

Failed to write data to connection Address(host='localhost', port=7687) (Address(host='127.0.0.1', port=7687)); ("0; 'Underlying socket connection gone (_ssl.c:2263)'")

Failed to write data to connection Address(host='localhost', port=7687) (Address(host='127.0.0.1', port=7687)); ("0; 'Underlying socket connection gone (_ssl.c:2263)'")

更新:已发现有关此问题Underlying socket connection gone? #474

的错误

1 个答案:

答案 0 :(得分:0)

我一直在将Neo4j与Docker和最新版本(3.5.11)结合使用,并且遇到了相同的问题。降级到3.4.15 Docker镜像对我来说已经解决了这个问题以及其他几个问题(管道破损),所以看起来这与正在使用的Neo4j版本有关?