~ubuntu-branches/ubuntu/utopic/python-tx-tftp/utopic-proposed

« back to all changes in this revision

Viewing changes to tftp/session.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-04-01 15:19:30 UTC
  • Revision ID: package-import@ubuntu.com-20130401151930-x3be61112fmk7a3d
Tags: 0.1~bzr31-0ubuntu8
debian/patches/03-longer-timeouts.patch: Increase the timeout to not
discard the session state because some clients are less tolerant to
the provided timeouts. This solution closer matches that of tftpd-hpa.
Thanks to Spads and Daviey for investigating and coming up with the
solution. (LP: #1155556)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    """
34
34
 
35
35
    block_size = 512
36
 
    timeout = (1, 3, 7)
 
36
    timeout = (1, 1, 1, 1, 1, 1)
37
37
    tsize = None
38
38
 
39
39
    def __init__(self, writer, _clock=None):
178
178
 
179
179
    """
180
180
    block_size = 512
181
 
    timeout = (1, 3, 7)
 
181
    timeout = (1, 1, 1, 1, 1, 1)
182
182
 
183
183
    def __init__(self, reader, _clock=None):
184
184
        self.reader = reader