PHP/curl: namelookup_time/dns slowing requests

后端 未结 2 852
慢半拍i
慢半拍i 2021-01-21 08:47

EDIT: Found part of the cause - see bottom.

I\'m doing a standard curl call from php. However, there seems to be a hangup during name resolution. On my OSX box, the nam

2条回答
  •  粉色の甜心
    2021-01-21 09:35

    You can fixed your domain in /etc/hosts, then php curl don't need to lookup DNS to find ip address. That worked for me.

提交回复
热议问题