use default timeout of 1 minute
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -469,9 +469,15 @@ bool wxFTP::RmFile(const wxString& path)
|
||||
class wxInputFTPStream : public wxSocketInputStream
|
||||
{
|
||||
public:
|
||||
wxInputFTPStream(wxFTP *ftp_clt, wxSocketBase *sock)
|
||||
: wxSocketInputStream(*sock), m_ftp(ftp_clt)
|
||||
wxInputFTPStream(wxFTP *ftp, wxSocketBase *sock)
|
||||
: wxSocketInputStream(*sock)
|
||||
{
|
||||
m_ftp = ftp;
|
||||
|
||||
// FIXME make the timeout configurable
|
||||
|
||||
// set a shorter than default timeout
|
||||
m_i_socket->SetTimeout(60); // 1 minute
|
||||
}
|
||||
|
||||
size_t GetSize() const { return m_ftpsize; }
|
||||
|
Reference in New Issue
Block a user