[Libwebsockets] libwebsockets is taking 50% cpu cycle after serving one http connection

bjorka adinov adinov.bjorka at gmail.com
Mon Nov 4 07:07:40 CET 2013

Thanks for the reply.

I tried with the 1.23 version, compiled using Visual Studio 10 Express,
projects generated using CMAKE 2.8. The symptom is still there, usually
immediately after I opened the second window (using Chrome, dumb-increment
only). I try this on other PC and the problem also occurred. Any help will
be greatly appreciated, also I can provide you with necessary data to
reproduce this.

On Mon, Nov 4, 2013 at 9:39 AM, "Andy Green (林安廸)" <andy at warmcat.com> wrote:

> On 31/10/13 15:41, the mail apparently from bjorka adinov included:
>  Hello Andy,
>> I managed to compiled and ran test_server sample (from ver. 1.22) using
>> Visual Studio 2008 compiler (My OS is windows 7 home premium). I
>> accessed http://localhost:7681 and it was functioning well, the
>> dumb_increment protocol worked (the counter number was running), and the
>> lws_mirror also working ( I can draw shapes).
>> Unfortunately the application consumed 50% cycle of my CPU (Core 2 Duo
>> 2,5 GHZ). I tried to modify test.html file, make it only serves static
>> html page and no javascript whatsoever and the problem persist. After
>> few seconds, the cpu cycle will always go to 50%.
> Well libwebsockets should show almost 0% CPU if idle or even just doing
> the dumb increment.
> Please try 1.23 or current git head and see if it's any diffferent.
> No need to modify the test apps, they should show the 0% behaviour or
> something is wrong.
> -Andy
>  Any advice will be greatly appreciated
>> Thanks
>> _______________________________________________
>> Libwebsockets mailing list
>> Libwebsockets at ml.libwebsockets.org
>> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20131104/e8309641/attachment-0001.html>

More information about the Libwebsockets mailing list