草庐IT

pyelasticsearch

全部标签

python - 如何断开与 elasticsearch-py 客户端/连接池的连接

什么是断开elasticsearch-py(python)客户端rsp的正确方法。关闭现有的连接池?我在文档中找不到任何信息。 最佳答案 只是为了完整性,根据threadlinked在问题的评论中。Currentlythereisnowaytoclosetheconnectionsortheclientitself,partlybecauseyouarethefirstonetoaskforit,wejustrelyonthegarbagecollectortoclosethesocketwhenitcleansuptheclien