SFTPClient.get leaves file open after error

Bug #379240 reported by flxkid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
paramiko
Fix Released
Medium
Robey Pointer

Bug Description

Testing file transfers on a GPRS modem which can drop the connection sometimes. If the connection is dropped during a file transfer using SFTPClient.get an exception is generated, but the local file that was being written to is left open. I need to schedule the file for retry and delete the partially downloaded file, but I can't because it is still open. I think the get method needs some error handling so that it can cleanup after itself and then pass the exception up for the application to handle.

Robey Pointer (robey)
Changed in paramiko:
assignee: nobody → Robey Pointer (robey)
importance: Undecided → Medium
milestone: none → 1.7.5
status: New → Confirmed
status: Confirmed → Fix Committed
Robey Pointer (robey)
Changed in paramiko:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.