Skip to content
Snippets Groups Projects
Commit 987b85d0 authored by rswindell's avatar rswindell
Browse files

Deuce's pipereadline() mod didn't time-out on Win32 and still used start

(though it was no longer defined). Put back to the time_t start time checking.
parent 003f9c03
No related branches found
No related tags found
No related merge requests found
......@@ -1344,18 +1344,22 @@ static int pipereadline(int pipe, char *buf, size_t length, char *fullbuf, size_
{
char ch;
DWORD i;
time_t start;
int ret=0;
#ifndef _WIN32
struct timeval tv={0,0};
fd_set read_set;
#endif
start=time(NULL);
/* Terminate buffers */
if(buf != NULL)
buf[0]=0;
if(fullbuf != NULL)
fullbuf[0]=0;
for(i=0;TRUE;) {
if(time(NULL)-start>startup->max_cgi_inactivity)
return(-1);
#if defined(_WIN32)
ret=0;
ReadFile(pipe, &ch, 1, (DWORD*)&ret, NULL);
......
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