Re: High load on openbsd
From: Jakob Schröter <js@xxxxxxxxxx>
Date: Sun, 27 Jan 2008 20:18:36 +0100 (CET)
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

Attachment: signature.asc
Description: This is a digitally signed message part.