FtpServer: GnuTLS bails with error 110 when opening data connections

When opening passive connections with a client that uses GnuTLS, it errors out with the error 110 “The TLS connection was non-properly terminated.” Note that this only occurs for data connections. The initial STARTTLS and subsequent login work fine.

Log below (from FileZilla):

Status:	Verbinde mit 127.0.0.1:2121...
Status:	Verbindung hergestellt, warte auf Willkommensnachricht...
Status:	Initialisiere TLS...
Status:	Überprüfe Zertifikat...
Status:	TLS-Verbindung hergestellt.
Status:	Angemeldet
Status:	Empfange Verzeichnisinhalt...
Befehl:	PWD
Antwort:	257 "/"
Befehl:	TYPE I
Antwort:	200 Binary transfer mode active.
Befehl:	PASV
Antwort:	227 Entering Passive Mode (127,0,0,1,217,65).
Befehl:	MLSD
Antwort:	150 Opening data connection.
Fehler:	GnuTLS-Fehler -110 in gnutls_record_recv: The TLS connection was non-properly terminated.
Status:	Server hat die TLS-Verbindung nicht ordnungsgemäß geschlossen
Fehler:	Could not read from transfer socket: ECONNABORTED - Verbindung abgebrochen
Antwort:	226 Closing data connection.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (11 by maintainers)

Commits related to this issue

Most upvoted comments

@fubar-coder, you are a hero! Using the latest version (beta.5), I can now access my FTP server (running on Linux) with FileZilla via FTPS over TLS. 😃

I am just using the default implementation.