~ubuntu-branches/ubuntu/natty/flup/natty

« back to all changes in this revision

Viewing changes to flup/server/threadedserver.py

  • Committer: Bazaar Package Importer
  • Author(s): Kai Hendry
  • Date: 2007-09-12 20:22:04 UTC
  • mfrom: (1.2.1 upstream) (4 gutsy)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20070912202204-fg63etr9vzaf8hea
* New upstream release
* http://www.saddi.com/software/news/archives/58-flup-1.0-released.html
* Added a note in the description that people should probably start thinking
  of moving to modwsgi.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23
23
# SUCH DAMAGE.
24
24
#
25
 
# $Id: threadedserver.py 2126 2006-11-27 06:30:15Z asaddi $
 
25
# $Id: threadedserver.py 2174 2006-12-02 23:26:13Z asaddi $
26
26
 
27
27
__author__ = 'Allan Saddi <allan@saddi.com>'
28
 
__version__ = '$Revision: 2126 $'
 
28
__version__ = '$Revision: 2174 $'
29
29
 
30
30
import sys
31
31
import socket
33
33
import signal
34
34
import errno
35
35
 
36
 
from threadpool import ThreadPool
37
 
 
38
36
try:
39
37
    import fcntl
40
38
except ImportError:
44
42
    def setCloseOnExec(sock):
45
43
        fcntl.fcntl(sock.fileno(), fcntl.F_SETFD, fcntl.FD_CLOEXEC)
46
44
 
 
45
from flup.server.threadpool import ThreadPool
 
46
 
47
47
__all__ = ['ThreadedServer']
48
48
 
49
49
class ThreadedServer(object):