Comment 2 for bug 127164

Revision history for this message
Vincent Ladeuil (vila) wrote : Re: FTP error handling is internally incoherent

Several things should/could be done in several steps:
- audit the ftp code for read operations and make them coherent ('get' reconnect on transient errors, 'has' don't for example)
- write a test ftp server that can simulate transient errors at any point (making it reusable for other protocols for an added bonus)
- audit code for write operations (this may have deeper implications than read operations and may be done in a second step)
- verify that ftp and sftp implementations are at the same level error handling wise (the ftp implementation has the notion of number_of_reties that the sftp implementation lacks)
- from the above verify that other protocols are coherent with that error handling

Due to the differences between the protocols it may not be possible to handle all operations with the same tolerance regarding transient errors but at least the above steps mentioned above should give us a better overall view.