Skip to content

回复:内存泄漏 ​

原始发布页

打开来源页面
查看 1 个交叉存档

在 0 和 2 个连接之间来回跳动,可能是因为它正在连接自己。你是否使用了“-connect”开关?

这是你自己编译的,还是发行版构建?版本是什么?

我不清楚 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:🧵: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.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。