httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject lingering_close questions?
Date Sat, 18 Jan 1997 02:33:42 GMT
Looking at the lingering_close() code, I see something that
doesn't make sense:

#ifdef HPUX
    while ((select_rv = select (sd + 1, (int*)&fds_read, NULL, (int*)&fds_err,
				&tv)) > 0) {
#else
    while ((select_rv = select (sd + 1, &fds_read, NULL, &fds_err, &tv)) >
0) {
#endif
	if ((read_rv = read (sd, dummybuf, sizeof(dummybuf))) <= 0)
	    break;
	else {
>>>>>>	   fds_read = fds; fds_err = fds;
	}
    }


Why are we resetting fds_read/fds_err?

Also, does it make sense to do the shutdown and the close if
the timer expires (the select returns 0)?
-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
                  "Not the Craw... the CRAW!"

Mime
View raw message