Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Kind
- inferentia
- EKS
- 묘공단
- virtual nodes
- vscode
- ca
- fsx for lustre
- Karpenter
- device plugin
- ubuntu
- aws
- windows
- 업그레이드
- AKS
- Azure
- VPA
- KEDA
- calico
- AutoScaling
- ansible
- kubernetes
- WSL
- 컨테이너
- go
- upgrade
- 쿠버네티스
- curl
- HPA
- Timeout
Archives
- Today
- Total
a story
curl 에 timeout 주기 본문
curl 로 웹 서비스를 테스트할 때 옵션이 없으면 무한 대기할 수 있다. 이럴 때는 ctrl+c 로 끊어줘야 한다.
$ curl 192.168.0.1
^C
이때 -m <sec> 옵션을 주면 해당 시간(초) 만큼 요청하고, time out 한다.
$ curl -m 3 192.168.0.1
curl: (28) Connection timed out after 3002 milliseconds
테스트를 할 때 -m 옵션을 주면 간단하게 성공 여부를 체크할 수 있다.
'기타' 카테고리의 다른 글
VS Code에서 REST 테스트 하기 (0) | 2023.11.05 |
---|---|
wsl: docker, kind 설치 (0) | 2023.11.05 |
개행문자(\n)를 줄바꿈으로 변환하기 (0) | 2022.03.19 |
Browser IDE, code-server 사용해보기 (0) | 2022.03.18 |
Windows 에서 ubuntu 의 x window 띄우기 (우분투 GUI 띄우기) (0) | 2022.02.11 |