Re: [Jsonrpc-cpp-devel] Bug in tcpserver
Brought to you by:
s-vincent
From: Sebastien V. <seb...@cp...> - 2013-08-28 19:36:16
|
Hi, IIRC I fix this bug in SVN trunk some month ago. Regards, -- Seb Le 28/08/2013 16:36, Johan Gielens a écrit : > > Hello, > > I found a bug in jsonrpc_tcpserver.cpp on line 139: > > tv.tv_usec = (ms % 1000 ) / 1000; > > should be: > > tv.tv_usec = (ms % 1000 ) * 1000; > > If the WaitMessage function is used in a loop, this results in 100% > CPU usage with timeouts lower than 1000 ms. > > Couldn't find bugzilla so I posted it here. > > Best regards, > Johan > > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > > > _______________________________________________ > Jsonrpc-cpp-devel mailing list > Jso...@li... > https://lists.sourceforge.net/lists/listinfo/jsonrpc-cpp-devel |