Skip to content
Snippets Groups Projects
Commit e373f1fd authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

log the WAIT command

parent dc25cd6f
No related branches found
No related tags found
No related merge requests found
...@@ -639,8 +639,10 @@ static int send_doc(int sock, struct httprequest *req) ...@@ -639,8 +639,10 @@ static int send_doc(int sock, struct httprequest *req)
char *ptr=cmd; char *ptr=cmd;
do { do {
if(2 == sscanf(ptr, "%31s %d", command, &num)) { if(2 == sscanf(ptr, "%31s %d", command, &num)) {
if(!strcmp("wait", command)) if(!strcmp("wait", command)) {
logmsg("Told to sleep for %d seconds", num);
sleep(num); /* wait this many seconds */ sleep(num); /* wait this many seconds */
}
else else
logmsg("Unknown command in reply command section"); logmsg("Unknown command in reply command section");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment