Re: lftp does not wait for "221 Goodbye" message before closing control connection
"Alexander V. Lukyanov" <[email protected]>
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Sep 22, 2014 at 10:02:29PM -0400, Stephen Powell wrote: > I tried setting both of these server options to yes and tried my "get" with > lftp again. The last few lines of output in the debug file are now as follows: > > ---- Got EOF on data connection > ---- Closing data socket > <--- 426 Failure writing network stream. > ---- received all data but no EOF Please test this change. -- Alexander. _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp
diff2
(text/plain, 382 B)
diff --git a/src/ftpclass.cc b/src/ftpclass.cc
index 4693475..1c37a13 100644
--- a/src/ftpclass.cc
+++ b/src/ftpclass.cc
@@ -2406,6 +2406,7 @@ int Ftp::Do()
if(conn->data_iobuf->Size()==0 && conn->data_iobuf->Eof())
{
LogNote(9,"Got EOF on data connection");
+ conn->data_iobuf->PutEOF(); // for ssl shutdown
DataClose();
if(expect->IsEmpty())
{