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:
parent
ed15161e81
commit
0a13eb5716
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue