Fixing a file descriptor leak. Closes issue 22.
This commit is contained in:
parent
f6442eb4e4
commit
6fd9391ad8
2 changed files with 4 additions and 0 deletions
3
run_tests
Executable file
3
run_tests
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
PYTHONPATH=. python t/test.py
|
|
@ -156,6 +156,7 @@ class TftpContext(object):
|
|||
continue
|
||||
break
|
||||
else:
|
||||
self.sock.close()
|
||||
raise TftpException, "Hit max timeouts, giving up."
|
||||
|
||||
# Ok, we've received a packet. Log it.
|
||||
|
|
Reference in a new issue