~ubuntu-branches/ubuntu/saucy/m2crypto/saucy

« back to all changes in this revision

Viewing changes to M2Crypto/SSL/timeout.py

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-11-06 01:28:39 UTC
  • mfrom: (2.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091106012839-zjjugwmj8zggokqh
Tags: 0.20.1-1ubuntu1
* Merge from debian testing, remaining changes:
  - debian/rules; enable testsuite, add more files to "clean" rule.
  - tests/test_ssl.py: use signal 9 to kill old s_server processes
    to work around build HUP signal-ignore-mask (LP: #451998).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"""Support for SSL socket timeouts.
2
2
 
3
 
Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved."""
 
3
Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved.
 
4
 
 
5
Copyright 2008 Heikki Toivonen. All rights reserved.
 
6
"""
 
7
 
 
8
__all__ = ['DEFAULT_TIMEOUT', 'timeout', 'struct_to_timeout', 'struct_size']
4
9
 
5
10
import struct
6
11
from M2Crypto import m2