Stunnel.org  
   
Home
About
News
Faq
Examples
Download
Patches
Support
Related
<Patch List> <Patch Directory>
Patch info for poll_deepstar

Patch info for poll_deepstar

CreatorSteven Van Acker
Patch to Version4.05
TypeNew Feature
Patchpoll_deepstar.patch
Description

(Full Text)

Poll vs Select handling

Author Comments



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 <deepstar@ulyssis.org>




This website makes patches available for use by the Internet community. However it does not endorse any of the patches contained herein. They could be work perfectly, or totally foul up everything. We don't know. Contact the authors if you have any questions. Use at your own risk.

The Stunnel software package does not contain any cryptography itself, however please remember that import and/or export of cryptographic software, code providing hooks to cryptographic algorithms, and discussion about cryptography is illegal in some countries. It is imperative for you to know your local laws governing cryptography. We're not liable for anything you do that violates your local laws.