-
-
Save nmfzone/588b7c313350c0d08e31aa158d8668e4 to your computer and use it in GitHub Desktop.
Experiencing slow curl Connection on DigitalOcean Droplets (Ubuntu 16.04)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## DO NOT INCLUDE THIS ########## | |
# File Location: /etc/resolvconf/resolv.conf.d/head | |
######################################### | |
nameserver 8.8.8.8 | |
nameserver 8.8.4.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're experiencing slow curl connection, or slow python requests connection.
For me, the real issue is because the
dns_resolution
is very slow.If you make a debug on curl request, with command:
For me, the
dns_resolution
showing 8.012.Then, I've found the solution to this problem is to add those value in
/etc/resolvconf/resolv.conf.d/head
After that, my
dns_resolution
showing 0.012. dang!