Raised This Month: $51 Target: $400
 12% 

[EXTENSION] cURL & Hash


Post New Thread Reply   
 
Thread Tools Display Modes
Yuera
SourceMod Donor
Join Date: Jan 2013
Old 01-03-2015 , 13:27   Re: [EXTENSION] cURL & Hash
Reply With Quote #111

SourcePawn Compiler 1.7.0-dev+5112
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2014 AlliedModders LLC

curl_self_test.sp(349) : error 178: cannot coerce char[] to any[]; storage classes differ
curl_self_test.sp(366) : error 178: cannot coerce char[] to any[]; storage classes differ
curl_self_test.sp(382) : error 178: cannot coerce char[] to any[]; storage classes differ
curl_self_test.sp(385) : error 178: cannot coerce char[] to any[]; storage classes differ
curl_self_test.sp(404) : error 178: cannot coerce char[] to any[]; storage classes differ
curl_self_test.sp(421) : error 178: cannot coerce char[] to any[]; storage classes differ
curl_self_test.sp(446) : error 178: cannot coerce char[] to any[]; storage classes differ
curl_self_test.sp(467) : error 178: cannot coerce char[] to any[]; storage classes differ
curl_self_test.sp(468) : error 178: cannot coerce char[] to any[]; storage classes differ

9 Errors.

Last edited by Yuera; 01-03-2015 at 13:28.
Yuera is offline
pTu
Senior Member
Join Date: Nov 2010
Location: Poland
Old 01-05-2015 , 20:10   Re: [EXTENSION] cURL & Hash
Reply With Quote #112

I have a problem with code

PHP Code:
curl curl_easy_init();
    if(
curl != INVALID_HANDLE)
    {
        
CURL_DEFAULT_OPT(curl);
        
curl_easy_setopt_string(curlCURLOPT_URL"http://domain.com/curl.php");
        
curl_easy_send_recv(curlsend_callbackmyFunctionsend_recv_complete_callbackSendRecv_Act_GOTO_SEND20001000AUTH_RESPONSE_BUFFER_SIZE);

        
PrintToServer("curl_easy_init");
    } 
In console command is printed curl_easy_init so Curl works good I think. But Why are not invoked methods send_callback, myFunction and send_recv_complete_callback?
pTu is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-07-2015 , 22:42   Re: [EXTENSION] cURL & Hash
Reply With Quote #113

If you're using this extension on Linux, please consider testing SourceMod 1.6.4-dev+4620, 1.7.0-dev+5125, 1.8.0-dev+5143 or newer. It hopefully fixes a nasty bug with leaking threads that this extension triggers.
__________________
asherkin is offline
danne2
AlliedModders Donor
Join Date: Jul 2011
Location: Unoriginal computer joke
Old 01-15-2015 , 15:29   Re: [EXTENSION] cURL & Hash
Reply With Quote #114

Quote:
Originally Posted by asherkin View Post
If you're using this extension on Linux, please consider testing SourceMod 1.6.4-dev+4620, 1.7.0-dev+5125, 1.8.0-dev+5143 or newer. It hopefully fixes a nasty bug with leaking threads that this extension triggers.
Hope this fixes the issue I've been having with the servers hanging on quit.
Thanks!
danne2 is offline
Kinsi
Senior Member
Join Date: Apr 2013
Old 01-21-2015 , 13:49   Re: [EXTENSION] cURL & Hash
Reply With Quote #115

Works for me single-threaded on windows (couldnt test on linux yet), but even trying to run the included self test multi-threaded ends up in not working, the onComplete just never gets called. Has anyone experienced this before?
Kinsi is offline
ayanami.dev
New Member
Join Date: May 2014
Old 01-21-2015 , 16:49   Re: [EXTENSION] cURL & Hash
Reply With Quote #116

Quote:
Originally Posted by Kinsi View Post
Works for me single-threaded on windows (couldnt test on linux yet), but even trying to run the included self test multi-threaded ends up in not working, the onComplete just never gets called. Has anyone experienced this before?
I got this problem in previous week. How you check it's working? Server not hibernating at this time?
ayanami.dev is offline
Kinsi
Senior Member
Join Date: Apr 2013
Old 01-21-2015 , 16:53   Re: [EXTENSION] cURL & Hash
Reply With Quote #117

Wow it indeed was caused by the server hibernating, interesting. Thanks a lot man, couldve thought of this myself lol
Kinsi is offline
ayanami.dev
New Member
Join Date: May 2014
Old 01-21-2015 , 18:31   Re: [EXTENSION] cURL & Hash
Reply With Quote #118

Hi. I have other one question. It's a first real memory leak problem in my young age. All my servers runs amazing long-long time. A have not any problems, and at one beautifull day i try to use curl and get users info with it. The problem and example below:
I have a lot of servers connections per day|hour. At any user connect i try to receive a inf o with curl. And after some curl inits it stops to clear a memory. And we have a random bugs when server try to allocate new memory for some features. Here is a base plugin that shows a problem:
Just try to compile it and run. Just write in hlsw sm_curl_memleak_test 500. It's start a timer with 500 curls runs in 1 second timeout. First ~320 messages i see that "handle is closed". Okey, when it stops i just try to change a map "map c1m1_hotel" etc... And what we got? Yes, server begins to show memory errors and crashed after map change. I think the numbers in this post can be different from machine to machine, but memory leak is present here. If i am wrong - please describe me what i am doing wrong.

Sorry for my bad english and thanks for yous replies.

Tested OS: Ubuntu 14.04 with latest updates.
Server geme: Left 4 Dead 2
Metamod:Source version 1.10.4
SourceMod Version: 1.6.3

Last edited by ayanami.dev; 01-21-2015 at 18:32.
ayanami.dev is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-21-2015 , 18:35   Re: [EXTENSION] cURL & Hash
Reply With Quote #119

Quote:
Originally Posted by ayanami.dev View Post
Tested OS: Ubuntu 14.04 with latest updates.
Server geme: Left 4 Dead 2
Metamod:Source version 1.10.4
SourceMod Version: 1.6.3
Read back 5 posts...
__________________
asherkin is offline
ayanami.dev
New Member
Join Date: May 2014
Old 01-21-2015 , 18:43   Re: [EXTENSION] cURL & Hash
Reply With Quote #120

Oh, sorry... Is there any solution without using a -dev versions of sourcemod? Or it's safe?
ayanami.dev 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 19:01.


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