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
|
class wxInputFTPStream : public wxSocketInputStream
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxInputFTPStream(wxFTP *ftp_clt, wxSocketBase *sock)
|
wxInputFTPStream(wxFTP *ftp, wxSocketBase *sock)
|
||||||
: wxSocketInputStream(*sock), m_ftp(ftp_clt)
|
: 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; }
|
size_t GetSize() const { return m_ftpsize; }
|
||||||
|
Reference in New Issue
Block a user