perform select in background
实际上开了个线程,所以要加上autoreleasepool管理
不然会出现,autoreleased with no pool in place just leaking 的错误.