Fixed poor EOF detection

git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@13 63283fd4-ec1e-0410-9879-cb7f675518da
This commit is contained in:
msoulier 2006-10-05 14:18:16 +00:00
parent ed15161e81
commit 0a13eb5716

View file

@ -528,7 +528,7 @@ class TftpClient(TftpSession):
if packethook:
packethook(recvpkt)
# Check for end-of-file, any less than full data packet.
if len(recvpkt.data) < DEF_BLKSIZE:
if len(recvpkt.data) < self.options['blksize']:
logger.info("end of file detected")
break