7

I observed that one of my Windows Services was not connecting to an FTP location on a Unix Server, I ran the executable on my PC as the dev didn't log any error and i was getting timeout error on trying to get response from an FTPWebRequest Object in C#.

On trying to access the FTP location using Filezilla I am getting the error

GnuTLS error -110: The TLS connection was non-properly terminated.

Using SFTP does not give this error and also using FTP in plain text(insecure) also does not.

I really do not understand this and note that the application has been running fine for years and this just suddenly happens on like 4 servers.

kolexinfos
  • 1,030
  • 1
  • 21
  • 42

3 Answers3

8

GnuTLS error -110: The TLS connection was non-properly terminated.

That just means that the peer just closed the socket and did not do a proper TLS shutdown. Some broken clients or servers do this. Assuming that this message relates to a data transfer you can usually ignore this because the transfer was finished anyway, so no data got lost.

Using SFTP does not give this error and also using FTP in plain text(insecure) also does not.

Of course you don't get it, since SFTP is using the SSH protocol instead of TLS and plain FTP does no encryption at all, so no TLS too. And if there is no TLS involved you can not get any TLS errors.

I really do not understand this and note that the application has been running fine for years and this just suddenly happens on like 4 servers.

It might simply be that the servers changed, i.e. either they never supported FTPS (i.e. FTP with TLS, not to be confused with SFTP) before or they now switched to a broken implementation.

Steffen Ullrich
  • 114,247
  • 10
  • 131
  • 172
  • does this mean the FTPWebRequest object in C# uses TLS for the FTP connections? – kolexinfos Aug 20 '15 at 11:11
  • @kolexinfos: since it supports TLS it will use it if enabled (SSL and TLS are different names for the same protocol family). But I think this is unrelated to your problem reported with Filezilla. – Steffen Ullrich Aug 20 '15 at 11:14
2

If you are connecting to a cPanel server then you can temporarily fix this issue by enabling "Broken Client Compatibility" in Pure-FTP settings in WHM.

Techiescorner
  • 791
  • 2
  • 12
  • 25
0

Older version of Filezilla may be responsible for the said error. Faced the same error on 3.4 version issue was resolved after downloading the 3.6 one.

Omer
  • 1
  • 2