Welcome Guest, Not a member yet? Register   Sign In
SphinxQL connection drops
#1

[eluser]Unknown[/eluser]
Hi all, this is my very first post here so please don't kill me if I am writing something wrong.

I have a CI installation that connects to sphinx server using the sphinxql feature to query the search engine.

Once every 10-20 page refreshs/page loads the connection to the sphinx client drops.

I can't figure out what the problem could be.

My database configuration is as follow:

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = '****';
$db['default']['password'] = '****';
$db['default']['database'] = '****';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = TRUE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;


$db['sphinxql']['hostname'] = '127.0.0.1';
$db['sphinxql']['username'] = '****';
$db['sphinxql']['password'] = '****';
$db['sphinxql']['database'] = '****';
$db['sphinxql']['dbdriver'] = 'mysql';
$db['sphinxql']['dbprefix'] = '';
$db['sphinxql']['pconnect'] = FALSE;
$db['sphinxql']['db_debug'] = TRUE;
$db['sphinxql']['cache_on'] = TRUE;
$db['sphinxql']['cachedir'] = '';
$db['sphinxql']['char_set'] = 'utf8';
$db['sphinxql']['dbcollat'] = 'utf8_general_ci';
$db['sphinxql']['swap_pre'] = '';
$db['sphinxql']['autoinit'] = FALSE;
$db['sphinxql']['stricton'] = FALSE;
$db['sphinxql']['port'] = 930;


Have you got any suggestion?

Thanks!
#2

[eluser]InsiteFX[/eluser]
Call this before making the next query:
Code:
$this->db->reconnect();

Also use POST REPLY or code tags to wrap your code in.




Theme © iAndrew 2016 - Forum software by © MyBB