Should I call the CheckConnectionState instead if I don't want to have the keep alives sent?

0 votes
asked Jul 14, 2020 by rexh (580 points)

Another question is, when the server (FileZilla) shuts down, how come we are not getting the "421 Server is going offline" from the logger.

related to an answer for: FileTransferClient disconnected event?
Applies to: Rebex FTP/SSL

1 Answer

0 votes
answered Jul 15, 2020 by Lukas Pokorny (121,790 points)
selected Jul 16, 2020 by rexh
Best answer

Yes, CheckConnectionState or GetConnectionState might be a better option in that case. However, if you used KeepAlive, you should actually be getting the server's shutdown message when you call the method after the connection has been shut down (if the server actually sent it). If you are not, a communication log might contain some clues about what was going on from the client's point-of-view.