← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 322002] Re: Temporary files not deleted when disk full

 

Even that the respective IOStream::File object for the unfinished file
seems properly destroyed after the error, somehow a file handle leak
happens here. With every download retry (and fail because still 'Not
enough space in the disk') another RW file handle stays open for the
unfinished file.

  410: File  (RW-)   H:\Unfinished\testfile.avi.VP3UIOZTWKWSUSRONKUATTKLMZ4DJTOBOUN4XGA.dctmp
  450: File  (RW-)   H:\Unfinished\testfile.avi.VP3UIOZTWKWSUSRONKUATTKLMZ4DJTOBOUN4XGA.dctmp
  464: File  (RW-)   H:\Unfinished\testfile.avi.VP3UIOZTWKWSUSRONKUATTKLMZ4DJTOBOUN4XGA.dctmp
  488: File  (RW-)   H:\Unfinished\testfile.avi.VP3UIOZTWKWSUSRONKUATTKLMZ4DJTOBOUN4XGA.dctmp
  4A8: File  (RW-)   H:\Unfinished\testfile.avi.VP3UIOZTWKWSUSRONKUATTKLMZ4DJTOBOUN4XGA.dctmp
  4C8: File  (RW-)   H:\Unfinished\testfile.avi.VP3UIOZTWKWSUSRONKUATTKLMZ4DJTOBOUN4XGA.dctmp

-- 
Temporary files not deleted when disk full
https://bugs.launchpad.net/bugs/322002
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to DC++.

Status in DC++: Confirmed

Bug description:
Using version 0.7091 on XP:

1. DC++ configuration: \incomplete on C:, \downloads on D:
2. C: is low on disk space, one download is running, other downloads are unable to allocate disk space
3. The download finishes, file is copied from C:\...\incomplete to D:\...\downloads
4. Temporary file in \incomplete is not removed (it is also locked and can't be deleted manually)
5. No further downloads are possible

The only solution is to close DC++, delete the files manually and restart DC++. A rare condition, but damn annoying when it happens.