Raised This Month: $ Target: $400
 0% 

SQL_TConnect, not executes callback


Post New Thread Reply   
 
Thread Tools Display Modes
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 03-19-2015 , 16:42   Re: SQL_TConnect, not executes callback
Reply With Quote #11

Handle db_handle
__________________
Neuro Toxin is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-19-2015 , 20:25   Re: SQL_TConnect, not executes callback
Reply With Quote #12

Have you restarted the server since you've been experimenting, or just reloading the plugin? It's possible your DB processing thread has already stalled due to a crashed connection, so it's not processing any threaded DB requests.
__________________
asherkin is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-19-2015 , 21:31   Re: SQL_TConnect, not executes callback
Reply With Quote #13

Quote:
Originally Posted by Neuro Toxin View Post
Handle db_handle
The new syntax introduces methodmaps, for sql one is: methodmap Database < Handle
Off-topic, example for you neuro.
PHP Code:
DataPack dPack = new DataPack();
dPack.WriteCell(5); 
__________________

Last edited by WildCard65; 03-19-2015 at 21:32.
WildCard65 is offline
seekenz
Member
Join Date: Mar 2015
Location: Poland
Old 03-20-2015 , 06:13   Re: SQL_TConnect, not executes callback
Reply With Quote #14

asherkin, yes I did. After each plugin reuploading I stop server and then start it.

It looks like asynchronous actions do not work properly. Maybe it's a problem in my server configuration?

I have even update sourcemod to the newest version. But problem still exists...

Code:
sm version
 SourceMod Version Information:
    SourceMod Version: 1.7.1-dev+5165
    SourcePawn Engine: SourcePawn 1.7, jit-x86 (build 1.7.1-dev+5165)
    SourcePawn API: v1 = 4, v2 = 6
    Compiled on: Mar 14 2015 06:52:43
    Built from: https://github.com/alliedmodders/sourcemod/commit/57c993e
    Build ID: 5165:57c993e
    http://www.sourcemod.net/

Last edited by seekenz; 03-20-2015 at 06:34. Reason: Extra data
seekenz is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 03-20-2015 , 08:35   Re: SQL_TConnect, not executes callback
Reply With Quote #15

Dumb question: is there somebody actually playing on server when you perform your tests?
I don't know if DBI threads are running when server hibernates. This is not the case with sockets, for example.
h3bus is offline
seekenz
Member
Join Date: Mar 2015
Location: Poland
Old 03-24-2015 , 18:36   Re: SQL_TConnect, not executes callback
Reply With Quote #16

h3bus that was exactly as you said. I would never figure it out. I think it should be written somewhere, that mysql threads work only if someone is on server.

Last edited by seekenz; 03-24-2015 at 19:08.
seekenz is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode