To: stunnel-users@mirt.net Date: Mon, 19 Apr 2004 17:18:21 +0200 From: Steven Van Acker (deepstar@ulyssis.org) Subject: Patch for stunnel 4.05 to use poll() instead of select() Hi, I have made a patch to allow more connections through stunnel by using poll() instead of select(). There already is such a patch for stunnel 4.04 by David A. Jenkins, but not for 4.05. This patch is a completely new patch. I have tried to change as little as possible of the original stunnel code to make it easier to apply the patch to other versions. The patch can be found at : http://deepstar.ekonomika.be/Projects/patches/stunnel-4.05.with.poll.not.select.patch.gz More information here: http://deepstar.ekonomika.be/Projects/patches/stunnel-4.05.with.poll.not.select.patch.txt --- Contents of text url above, at time of inclusion on stunnel.org --- This is a patch for stunnel 4.05, that uses poll() instead of select(), to get around the fdset limit when using select(). Unlike select(), poll() can watch a (semi) ulimited number of filedescriptors, instead of "just" 1024. The patch uses binary insert and binary sort to speed up the lookups in the filedescriptor lists. usage: gunzip stunnel-4.05.with.poll.not.select.patch.gz cd stunnel-4.05/ patch -p1 < ../stunnel-4.05.with.poll.not.select.patch I release this patch under the GPL license. greets, Steven Van Acker