Ticket #1 (closed defect: wontfix)

Opened 11 years ago

Last modified 8 years ago

PuttyProvider backend has timing issues

Reported by: awl03 Owned by: alamaison
Priority: major (affects peripheral workflow) Milestone: 0.2.1.4 Real data provider
Component: backend Version: 0.2.0.1
Keywords: psftp.exe PuTTY command-line wrapper Cc:

Description

The PuttyProvider? backend component is severely affected by timing issues. If it writes to the psftp.exe process and does not wait long enough to get a response, the string it reads back may be unexpectedly short and it will crash when trying to parse it.

There is no easy way to solve this as the server may take any reasonable amount of time (up to several seconds) to respond but we do not want to be forced to wait this maximum amount for every request. One solution might be to check the text we have read against a list of possible replies at that moment (a sort of state-machine) with an option to timeout.


It might be better to ditch the PuTTY-based wrapper and create a separate backend provider using code from one of:

Change History

comment:1 Changed 11 years ago by alamaison

  • Status changed from new to closed
  • Resolution set to wontfix

The PuTTY-based SFTP provider, CPuttyProvider, has been superseded by the libssh2-based one, CLibssh2Provider. For the time being, no effort is going to be made to fix the PuTTY-wrapper's issues outlined here.

Note: See TracTickets for help on using tickets.