Re: High load on openbsd
From: Bob <bob@xxxxxxxxxxxxxx>
Date: Sun, 27 Jan 2008 23:11:50 +0100 (CET)
The problem is not only at connection : once the connection is established, 
gloox still uses 100% CPU.

Thibault

On Sunday 27 January 2008 20:17:57 Jakob Schröter wrote:
> On Sunday January 27 2008, Bob wrote:
> > I am using gloox on openbsd with a small configuration (500 MHz
> > processor). Creating a client uses 100% CPU (version 0.9.9.3).
> > I have looked in the code and found this function :
>
> Hi,
>
> Using non-blocking connect() with recv()'s default timeout (-1) should help
> here:
>
>       if( client->connect( false ) )
>       {
>         ConnectionError ce = ConnNoError;
>         while( ce == ConnNoError )
>         {
>           ce = client->recv();
>         }
>       }
>
> cheers,
> Jakob