修复open too many file 问题