httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: cvs commit: apache-apr/pthreads/src/main http_protocol.c
Date Sun, 21 Mar 1999 17:46:01 GMT
On Tue, 2 Mar 1999, Ryan Bloom wrote:

> code to stay here forever.  I would rather either use NSPR's read, which
> has a timeout value, or write an APR function that has a timeout.

This may be how you did it... I haven't looked.  timed read/write should
be as "easy" as:

- marking all fds non-blocking at creation time

- do this to read/write:


  for (;;) {
    do {
	read/write
    } until finished or get EWOULDBLOCK
    if (finished) break;
    select(fd for reading/writing, timeout)
  }

Dean


Mime
View raw message