cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: a curl_multi_fdset() replacement? (TODO-RELEASE #55)

From: <codemstr_at_ptd.net>
Date: Mon, 31 Jan 2005 23:11:47 -0000

> select() is fine except for two problems:
Select also wastes memory. An fd_set is usually implemented as including an
array of FD_SETSIZE entries. Therefore, if FD_SETSIZE is 1024, even if I'm
only using select() to deal with a single socket, it's still allocating
enough memory to hold 1024. Poll solves this by using a dynamically allocated
storage.

-- codemastr
Received on 2005-02-01