{
"subject": "Re: Memory leak",
"content": {
"format": "html",
"body": "<div class=\"post\">Bouncing between 0 and 2 connections could be if it's connecting to itself. Are you using the \"-connect\" switch?<br/><br/>Did you compile it or is this a release build, and what version? <br/><br/>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?<br/><br/>The wait function on linux is:<br/><br/>inline void Sleep(int64 n)<br/>{<br/> boost::thread::sleep(boost::get_system_time() + boost::posix_time::milliseconds(n));<br/>}<br/><br/>If that doesn't work right, then it would be possible for it to spin through the loop as fast as it can.</div>"
},
"source": {
"name": "Bitcoin Forum",
"url": "https://bitcointalk.org/index.php?topic=1023.msg13201#msg13201"
},
"date": "2010-09-19T17:22:03Z"
}