[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Remote EOF and MinGW builds
[Thread Prev] | [Thread Next]
- Subject: Re: Remote EOF and MinGW builds
- From: Keisial <keisial@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 03 Mar 2010 16:55:30 +0100
- To: libssh@xxxxxxxxxx
Andreas Schneider wrote:
The limit can be increased (both on Linux and Windows) by defining FD_SETSIZEAs far as I know poll() and select() offer the same functionality. Select() needs a little more memory than poll(), but it is way more platform independent. Thus I've adopted the library to use select(). This makes the files "poll.h" and "poll.c" obsolete.Select can only handle a limited number of handles. This limit is defined by the operating system and differs. On Linux the limit is 1024 handles and on Windows it is 64. A lot of people work with more handles than 64 and some even with more than 1024. So we need to fix the poll-emulation. Cheers,
before the #includeThe problem with select is that it's inefficient for a large number of sockets.
Remote EOF and MinGW builds | Thomas Schmid <schmid-thomas@xxxxxxx> |
Re: Remote EOF and MinGW builds | Andreas Schneider <mail@xxxxxxxxxxxx> |