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

[EXTENSION] cURL & Hash


Post New Thread Reply   
 
Thread Tools Display Modes
hannibal.l
Junior Member
Join Date: Feb 2012
Old 09-12-2014 , 15:59   Re: [EXTENSION] cURL & Hash
Reply With Quote #101

works fine!
hannibal.l is offline
kunalpowar
Junior Member
Join Date: Sep 2014
Old 09-13-2014 , 07:04   Re: [EXTENSION] cURL & Hash
Reply With Quote #102

Works perfectly. Thanks a lot Bara!!
kunalpowar is offline
arsirc
Veteran Member
Join Date: Dec 2007
Location: Carinthia,Austria,Earth
Old 09-15-2014 , 10:58   Re: [EXTENSION] cURL & Hash
Reply With Quote #103

Quote:
Originally Posted by Bara View Post
Binary: https://bara.in/curl.zip
Source: https://bara.in/curl_src.tar

Compiled with MM 1.10, SourceMod 1.6, libcurl/7.26.0, OpenSSL/1.0.1e, zlib/1.2.7, libssh2/1.4.2
MD2 suport was removed
L 09/15/2014 - 16:55:05: [SM] Unable to load plugin "xxxxxxx.smx": Native "curl_easy_init" was not found
Native "curl_easy_init" not existing in your version??

Last edited by arsirc; 09-15-2014 at 10:59.
arsirc is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 09-20-2014 , 00:24   Re: [EXTENSION] cURL & Hash
Reply With Quote #104

Quote:
Originally Posted by Bara View Post
Binary: https://bara.in/curl.zip
Source: https://bara.in/curl_src.tar

Compiled with MM 1.10, SourceMod 1.6, libcurl/7.26.0, OpenSSL/1.0.1e, zlib/1.2.7, libssh2/1.4.2
MD2 suport was removed
Link's not working, have a working one? I'll try in a few more hours just in case It's just me.
Drixevel is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 09-20-2014 , 06:17   Re: [EXTENSION] cURL & Hash
Reply With Quote #105

Quote:
Originally Posted by r3dw3r3w0lf View Post
Link's not working, have a working one? I'll try in a few more hours just in case It's just me.
Oh, webserver is crashed. Should now work again.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.

Last edited by Bara; 09-20-2014 at 08:40.
Bara is offline
unrealized
New Member
Join Date: Jun 2012
Old 10-02-2014 , 21:41   Re: [EXTENSION] cURL & Hash
Reply With Quote #106

It took me a while to figure this out -- curl extension compiled on Debian 7 Wheezy x64 is here: removed

Last edited by asherkin; 10-02-2014 at 22:37. Reason: Removed binary, no source code.
unrealized is offline
LaMuerteInHell
Junior Member
Join Date: Apr 2011
Old 10-03-2014 , 10:40   Re: [EXTENSION] cURL & Hash
Reply With Quote #107

Hehe, I'm running on Windows7 and I couldn't get cURL to work even though I thought I had installed Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update. Turns out I hadn't even installed Microsoft Visual C++ 2005 itself. After installing that I ran the MFC Security Update listed on the first post and now it works. *facepalm*
LaMuerteInHell is offline
unrealized
New Member
Join Date: Jun 2012
Old 10-05-2014 , 20:06   Re: [EXTENSION] cURL & Hash
Reply With Quote #108

Source: https://bara.in/curl_src.tar

Binary compiled and confirmed working on debian7 wheezy x64: https://www.dropbox.com/s/53fsww10du...rl.ext.so?dl=0
unrealized is offline
deadlyruler
Member
Join Date: Dec 2008
Old 11-04-2014 , 20:08   Re: [EXTENSION] cURL & Hash
Reply With Quote #109

Hello,

I have a small issue. I am using curl_hash_file to check the md5 hash of files in a directory. After about 462 (+/- 1, but pretty consistent at 462) calls to curl_hash_file, the callback not come back after that.

After that when I attempt to reload the plugin to run curl_hash_file again, only 1 call will come back, and the second will hang. If reloading the plugin again, even the first call will not come back.

The calls to curl_hash_file are made 1 by 1, after the callback returns, the next curl_hash_file is run.

Unfortunately reloading the curl extension is not possible due to this error upon reloading:
[SM] Extension curl.ext.so failed to reload: Could not create CURL Slist type (err: 10)

I'm running the server on Ubuntu 14.04

Any help would be appreciated

Edit: It seems after running 300+ curl_hash_file calls and then letting the server run for a few minutes, the server will crash with
Quote:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
./srcds_run: line 324: 17051 Aborted (core dumped) $HL_CMD
I'm going to assume it is not my plugin causing this because it simply runs curl_hash_file function on a loop.

This occurred on one of my servers that is running on CentOS 64bit VPS. When this plugin was tested on servers that were being run from a dedicated server, they didn't seem to crash.

I will be staying away from it for now since it seems to be causing adverse effects.

Last edited by deadlyruler; 11-04-2014 at 21:06.
deadlyruler is offline
raydan
Senior Member
Join Date: Aug 2006
Old 12-12-2014 , 05:26   Re: [EXTENSION] cURL & Hash
Reply With Quote #110

people create many threads in linux by using "curl_hash_file" or "curl_easy_perform_thread"
may be "ulimit" problem
try increase "ulimit" value
raydan is offline
Reply


Thread Tools
Display Modes

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 06:38.


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