Re: [gnet-devel] echoserver.exe cause 100% CUP time on WinXP
- From: "Kuang-Chun Cheng" <kcc1967 gmail com>
- To: gnet-devel-list gnome org
- Subject: Re: [gnet-devel] echoserver.exe cause 100% CUP time on WinXP
- Date: Fri, 11 Apr 2008 15:43:42 +0800
After comment out the code of echoserver.c one line at a time ....
I found the problem comes from
gnet_io_channel_readline()
After gnet_tcp_socket_server_accept() return, if
gnet_io_channel_readine() is used, it will drive CPU to 100% !!!
Any suggestion ?
Regards
KC
On Fri, Apr 11, 2008 at 3:22 PM, Kuang-Chun Cheng <kcc1967 gmail com> wrote:
> Hi,
>
> I had build gnet-2.0.8 by using cross mingw compiler under Linux.
> And I found even the simple "echoserver.exe" will cause 100% CPU time
> under WinXP when client connected to it (after accept return ...)
>
> I checked gnet-2.0.7 which also had the similar problem.
>
> gnet client did not have such probem, only server (GTcpSocket server).
>
> I don't know if it's my cross mingw problem, glib2 problem or gnet2 problem.
> Does anyone can suggest where should I looking at.
> Any code in gnet2 might use 100% CPU when "accept" return ?
>
> I will start looking at the source code of gnet2 ... and hopefully
> also can get some
> information from here. Thanks
>
> Best Regards,
> KC
>
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]