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