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

[EXTENSION] cURL & Hash


Post New Thread Reply   
 
Thread Tools Display Modes
psychonic

BAFFLED
Join Date: May 2008
Old 06-03-2012 , 13:13   Re: [EXTENSION] cURL & Hash
Reply With Quote #61

Quote:
Originally Posted by TnTSCS View Post
Regarding CS:GO compatibility... I know it hasn't been announced that it supports it yet, but thought I'd share my findings when trying to run it (for use with Updater):

sm exts list with cURL

Log with cUrl
That's from not heeding the final note on the first post.

Quote:
Originally Posted by raydan View Post
the windows version should install the following package (thanks Thrawn2 to figure out)
Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update
http://www.microsoft.com/download/en....aspx?id=26347
psychonic is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 06-03-2012 , 16:29   Re: [EXTENSION] cURL & Hash
Reply With Quote #62

holy smokes... I never even saw that. I'm a n00b and deserve a n00b slap for missing that.
__________________
View my Plugins | Donate
TnTSCS is offline
scso1502
Senior Member
Join Date: Dec 2007
Location: Windsor, CA USA
Old 07-04-2012 , 22:23   Re: [EXTENSION] cURL & Hash
Reply With Quote #63

Hello folks,

I hate to post requests for help, but I'm researching an issue that has plagued our dedicated server since installing the x86 and x64 MS C++ Packages on my Windows 2008 Dedicated server yester afternoon.

I use the Curl extention because apparently it's needed to run the SourceMod updater. Since I installed the .msi packages yesterday, all the IP addresses on my server have been suffering network timeouts ranging from 1 to 15 second each. The loss spikes occur on one or two of the IP addresses on the box at time, not all of them at once. Literally one game server on one IP will be running fine while another on a different IP will lag out for like 5 seconds or more. Prior to yesterday, the servers were smooth as glass.

Adding the two MS .msi packages listed here is the only thing I'm doing differently than I was before the problems started, so the only thing I can deduce is that by installing them, I have somehow caused the random connectivity loss I'm seeing or some other random problem came up at the exact same time. The datacenter assures me it's not their equipment, but who really knows. I'm not all that sure about it, but since it's only affect a few IPs, I guess I see why they feel that way. One thing I do know is that it's not game server related. I can take all the game servers offline and still see the box lose it's connectivity to me.

If you guys have any clue how this could be related to my issue, would you please let me know? I'd like to uninstall the package for a test but wanted to wait to hear from someone here first.

Thanks very much in advance!
Miek Vail
__________________

Lt. Maverick
BOOM! Gaming & Technology Community
www.boomgaming.net
scso1502 is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 07-05-2012 , 02:32   Re: [EXTENSION] cURL & Hash
Reply With Quote #64

Quote:
Originally Posted by scso1502 View Post
I use the Curl extention because apparently it's needed to run the SourceMod updater.
If you are referring to my third-party Updater plugin, then you can try using one of the other extensions to see if that fixes your problem.
__________________

Last edited by GoD-Tony; 07-05-2012 at 04:51.
GoD-Tony is offline
scso1502
Senior Member
Join Date: Dec 2007
Location: Windsor, CA USA
Old 07-05-2012 , 23:17   Re: [EXTENSION] cURL & Hash
Reply With Quote #65

Thank you God-Tony. After 3 days of pulling my hair out, I was able to isolate this issue to an issue at the data center in LA Ca. I use for my dedicated server. They had an incorrectly configured edge router that was randomly dropping packets to my server. They have since corrected the issue. Of all the times for this to occur, it had to be right when I installed the Windows .msi packages for this extension! Bahhhhh..

Take care,
Mike
__________________

Lt. Maverick
BOOM! Gaming & Technology Community
www.boomgaming.net

Last edited by scso1502; 09-11-2012 at 22:27.
scso1502 is offline
unt0uch4bl3
Junior Member
Join Date: Apr 2009
Old 07-13-2012 , 04:46   Re: [EXTENSION] cURL & Hash
Reply With Quote #66

Hello,

I think I posted about this problem a while ago when this extension was in version 1.2.0.0 and now here it is again.
------
The current compiled version of the extension for linux, 1.3.0.0 (just downloaded a fresh one) will not run on my linux server

Code:
[SM] Extension curl.ext.so failed to load: /home/srcds3/css/cstrike/addons/sourcemod/extensions/curl.ext.so: ELF file OS ABI invalid

----
Some version of 1.2.0.0 recompiled (by GoD-Tony as far as I remember) currently loads fine.

Thanks

Last edited by unt0uch4bl3; 07-13-2012 at 04:50.
unt0uch4bl3 is offline
Russianeer
SourceMod Donor
Join Date: Feb 2011
Old 07-26-2012 , 21:15   Re: [EXTENSION] cURL & Hash
Reply With Quote #67

A while ago I was informed by GoD-Tony that CURLOPT_WRITEFUNCTION is supported since 1.2.0.0. If so, what are the callback function's arguments. The default is
Code:
size_t function( char *ptr, size_t size, size_t nmemb, void *userdata);
But, I am unsure whether nmemb and userdata are used. Anyone know?
Russianeer is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 07-27-2012 , 02:03   Re: [EXTENSION] cURL & Hash
Reply With Quote #68

Quote:
Originally Posted by Russianeer View Post
A while ago I was informed by GoD-Tony that CURLOPT_WRITEFUNCTION is supported since 1.2.0.0. If so, what are the callback function's arguments.
You'll find all of this information in the include files. There are examples of usage somewhere in the release as well.

Code:
funcenum CURL_Function_CB {     // CURLOPT_WRITEFUNCTION     public(Handle:hndl, const String:buffer[], const bytes, const nmemb),     public(Handle:hndl, const String:buffer[], const bytes, const nmemb, any:data),         // CURLOPT_READFUNCTION     public(Handle:hndl, const bytes, const nmemb),     public(Handle:hndl, const bytes, const nmemb, any:data), }
__________________

Last edited by GoD-Tony; 07-27-2012 at 02:15.
GoD-Tony is offline
Robinjoeh
Junior Member
Join Date: Aug 2012
Old 12-17-2012 , 10:02   Re: [EXTENSION] cURL & Hash
Reply With Quote #69

L 12/17/2012 - 15:49:15: SourceMod error session started
L 12/17/2012 - 15:49:15: Info (map "csp_dust2") (file "errors_20121217.log")
L 12/17/2012 - 15:49:15: [SM] Unable to load extension "curl.ext": /csp/orangebox/cspromod/addons/sourcemod/extensions/curl.ext.so: undefined symbol: _ZNSs9_M_mutateEjjj

Works on CS:GO, but not with Promod 1.10. Why not? Using Linux. I have tried every extension posted in the forums and Google Code.

Anyone? Thanks.

Last edited by Robinjoeh; 12-17-2012 at 10:03.
Robinjoeh is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 01-23-2013 , 12:57   Re: [EXTENSION] cURL & Hash
Reply With Quote #70

Hi all,

I try to use curl to check more than one url (before using it) inside a loop but i can't get it to work : only the last url from the list is checked. i suppose it is because the loop set a new handle before the one before returns the Oncomplete...

here is the part of my code...
Code:
public OnMapStart()
{
    decl String:file[PLATFORM_MAX_PATH];
    BuildPath(Path_SM, file, PLATFORM_MAX_PATH, "configs/downloadurl.txt");
    
    new Handle:kv = CreateKeyValues("downloadurl");
    FileToKeyValues(kv, file);
    if (KvJumpToKey(kv, "list") )
    {
        new String:istring[4];
        new String:url[64];
        
        g_count_url = KvGetNum(kv, "nb_url");
        
        for (new i = 0; i < g_count_url; i++)
        {
            IntToString(i, istring, 3);
            KvGetString(kv, istring, url, sizeof(url));
            n_url = i;
            g_url[n_url] =  url;
            Is_Valid_URL[n_url] = false;
            
            new Handle:curl = curl_easy_init();
            if (curl != INVALID_HANDLE)
            {
                curl_easy_setopt_string(curl, CURLOPT_URL, g_url[n_url]);
                LogMessage("Parsing URL: %s ...", g_url[n_url]);
                curl_easy_perform_thread(curl, OnComplete);
            }
        }
        CloseHandle(kv);
    }
    else
    {
        LogError("Unable to read in configs/downloadurl.txt - Check the file...");
    }
}

public OnComplete(Handle:hndl, CURLcode: code)
{
    Is_Valid_URL[n_url] = true;
    LogMessage("URL: %s is valid.", g_url[n_url]);
    CloseHandle(hndl);
}
Can someone help me to fix it please?
Mirandor 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 16:01.


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