MongoDB连接错误
2018-01-17 本文已影响14人
g0

是因为get_iis_shortname()这个函数处理的时间过长,在i这个变量上停留时间过长,长时间没有进行操作,引发mongodb服务端超时,解决办法的话为在后边加no_cursor_timeout = True,永不超时,游标连接不会主动关闭,后边需要手动关闭

是因为get_iis_shortname()这个函数处理的时间过长,在i这个变量上停留时间过长,长时间没有进行操作,引发mongodb服务端超时,解决办法的话为在后边加no_cursor_timeout = True,永不超时,游标连接不会主动关闭,后边需要手动关闭