글쓴이: 익명 사용자 / 작성시간: 목, 2022/09/29 - 1:00오전
안녕하세요
centos7 을 사용중에 있습니다
이상한것이 php도 그렇고 리눅스 자체에서 curl 을 쓰면
curl google.com 을 하면 무한루프만 돌아가고
curl --max-time 1 google.com 을 해야 바로 curl 작동이 됩니다
dns 도 설정이 되어있는데 문제가 뭘까요?
부가적으로 dns 가 의심되는게 yum update 등 설치나 업데이트시 미러서버 받아오는게 3~5분이 걸립니다 ㅡㅡ;
google.com dns lookup은 잘 되시는지
google.com dns lookup은 잘 되시는지...
--max-time 옵션은 아래와 같이 기술 되어 있네요
-m, --max-time <seconds> Maximum time in seconds that you allow the whole operation to take. This is useful for preventing your batch jobs from hanging for hours due to slow networks or links going down. Since 7.32.0, this option accepts decimal values, but the actual timeout will decrease in accuracy as the specified timeout increases in decimal precision. If this option is used several times, the last one will be used. See also --connect-timeout.댓글 달기