libcurl and libcurlssl suddanly very slow

BlitzMax Forums/Brucey's Modules/libcurl and libcurlssl suddanly very slow

Hezkore(Posted 2013) [#1]
I just updated my libcurl and libcurlssl via the SVN and it's really slow now.
Running example 1 normally only takes a few MS before I get data back, but when using the newly updated version it easily takes over 30 seconds for any data to be received.


Brucey(Posted 2013) [#2]
Make sure you've rebuilt the modules.
For asynchronous DNS lookups it uses a library called c-ares, which was also updated. It's running as expected here on Windows. In the past, there were some issues with the configuration of libcurl/c-ares which would show up as very slow DNS lookups on Windows. I double-checked the settings in SVN, and they all look correct.


Grisu(Posted 2013) [#3]
Are you talking about V1.04? Still works fine here, can't see a speed difference.


Brucey(Posted 2013) [#4]
Hezkore, is it still slow for you?


JoshK(Posted 2015) [#5]
I just tried it out for the first time. Example 8 consistently takes 12 seconds.

On my own server, three tests took 11-12 seconds.


JoshK(Posted 2015) [#6]
Apparently this is an ongoing issue, and those open-source clowns can't even be bothered to test on Windows:
http://c-ares.haxx.se/mail/c-ares-archive-2014-11/0006.shtml


JoshK(Posted 2015) [#7]
Applying this patch, I was able to fix the problem. Now it takes 0 millisecs:
http://c-ares.haxx.se/mail/c-ares-archive-2014-05/0008.shtml

Here is the fixed ares_init.c:



Brucey(Posted 2015) [#8]
Thanks !


Grisu(Posted 2015) [#9]
Thanks, works well under Win 8.1.

@Brucey: Will you update your module accordingly?


Brucey(Posted 2015) [#10]
It is available already on github : https://github.com/maxmods/bah.mod

The googlecode repository has been End-of-lifed because Google is shutting it down soon. All my stuff is now available on github (which can be accessed via git or svn).


Grisu(Posted 2015) [#11]
Thanks for letting me know. :)

This deserves a sticky somewhere!


PhotonTom(Posted 2015) [#12]
Brucey would it be possible to port over that page from google code that used to tell you what each module did (I know it didn't list them all) and maybe stick it in the github wiki?
Sometimes it can be difficult to figure out what each module does by just looking at the name :)


Brucey(Posted 2015) [#13]
Yes, when I can find some time, I will be doing that ;-)


PhotonTom(Posted 2015) [#14]
Amazing, Thanks :)