In Linux, what happens to the state of a process (curl, postman, mule, caml) when it has sent a HTTP request and waiting for a HTTP response? What is the way to know how long the process is waiting for the response?
In Linux, what happens to the state of a process (curl, postman, mule, caml) when it has sent a HTTP request and waiting for a HTTP response? What is the way to know how long the process is waiting for the response?
After the update to the question, my comment of -
Still applies. Have headers been sent, but waiting on data transmission to start? Waiting on headers? Half the data has been sent but there is a temporary transmission pause?
Anyway,
curl
reports as "sleeping", didn't want to deal with writing more code and experimenting for the others. Perhaps some method of relating voluntary context switches to elapsed time would work?With
curl
, and a simple script -a
curl http://localhost/wait.php
shows in/proc/PID/status
that it is sleeping. No indicator of time that I can see - here's the output, note I had to start the curl, click to change focus, etc. so more than a few seconds into itAnd a (better)
time
command run -