Threaded cURL. Consider experimental (what in this branch isn't?), however it drastically reduces hitching for me... so yup.

This commit is contained in:
Shyotl
2011-07-31 02:53:26 -05:00
parent d397513840
commit 28568add4c
3 changed files with 110 additions and 28 deletions

View File

@@ -319,16 +319,18 @@ bool LLXMLRPCTransaction::Impl::process()
}
}
const F32 MAX_PROCESSING_TIME = 0.05f;
LLTimer timer;
//const F32 MAX_PROCESSING_TIME = 0.05f;
//LLTimer timer;
while (mCurlRequest->perform() > 0)
mCurlRequest->perform();
/*while (mCurlRequest->perform() > 0)
{
if (timer.getElapsedTimeF32() >= MAX_PROCESSING_TIME)
{
return false;
}
}
}*/
while(1)
{