]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ftp.cpp
chmod is not available in VisualAge
[wxWidgets.git] / src / common / ftp.cpp
index f485e9a7b0c6b410c884e53fec0ec44d26a88ae5..6ff5d5a9418f461742cd2ee77ac036c33400097b 100644 (file)
@@ -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; }