Re: Memory leak
Bitcointalk · 2010-09-19 17:22:03 UTC
在 0 和 2 个连接之间跳,可能是它在连自己。你用了 "-connect" 开关吗?
你自己编译的还是 release 构建,什么版本?
200Kb/sec 我不太确定,因为连接尝试之间至少等半秒。它在 0 和 2 个连接之间闪得多快?比每秒两次还快?
linux 上的等待函数是:
inline void Sleep(int64 n)
{
boost::thread::sleep(boost::get_system_time() + boost::posix_time::milliseconds(n));
}
如果它工作不正常,循环就可能全速空转。
英文原文
Bouncing between 0 and 2 connections could be if it's connecting to itself. Are you using the "-connect" switch?
Did you compile it or is this a release build, and what version?
I'm not sure how the 200Kb/sec, since it waits at least a half second between connection attempts. How fast is it flickering between 0 and 2 connections? Faster than twice a second?
The wait function on linux is:
inline void Sleep(int64 n)
{
boost::thread::sleep(boost::get_system_time() + boost::posix_time::milliseconds(n));
}
If that doesn't work right, then it would be possible for it to spin through the loop as fast as it can.
