Fixing a file descriptor leak. Closes issue 22.

master
Michael P. Soulier 2011-06-02 22:31:55 -04:00
parent f6442eb4e4
commit 6fd9391ad8
2 changed files with 4 additions and 0 deletions

3
run_tests Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
PYTHONPATH=. python t/test.py

View File

@ -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.