question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GnuTLS bails with error 110 when opening data connections

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
sebastianbkcommented, Mar 27, 2019

@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.

0reactions
fubar-codercommented, Jun 19, 2019

It’s not in the sample project, it’s in the main library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GnuTLS error -110 when browsing empty directories
I'm looking into a way to suppress the harmless error at the end of a connection.
Read more >
GnuTLS recv error (-110): The TLS connection was non- ...
Resolving deltas: 100% (12305/12305), done. As this said, It seems the plugin have been downloaded despite the error.
Read more >
1842850 – gnutls_set_default_priority() fails with a non- ...
The unit tests now fail a lot with DEBUG: ERROR:src/tls/test-server.c:220:assert_https_outcome: assertion failed (gnutls_set_default_priority (session) ...
Read more >
[SCM] GNU gnutls branch, master, updated. gnutls_2_11_4-4 ...
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository ...
Read more >
The TLS connection was non-properly terminated - YouTube
GnuTLS error - 110 in gnutls_record_recv: The TLS connection was non-properly terminated Helpful? Please support me on Patreon: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found