Messages in this thread | | | Date | Wed, 23 Oct 2002 13:57:48 -0700 | From | Dan Kegel <> | Subject | Re: async poll |
| |
John Myers wrote: > Davide Libenzi wrote: > >> Maybe my understanding of AIO on Linux is limited but how would you do >> async accept/connect ? Will you be using std poll/select for that, and >> then you'll switch to AIO for read/write requests ? >> > If a connection is likely to be idle, one would want to use an async > read poll instead of an async read in order to avoid having to allocate > input buffers to idle connections. (What one really wants is a variant > of async read that allocates an input buffer to an fd at completion > time, not submission time).
In that situation, why not just add the fd to an epoll, and have the epoll deliver events through Ben's interface? That way you'd get notified of changes in readability, and wouldn't have to issue the read poll call over and over.
- Dan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |