[geary/mjog/imap-connection-fixes: 4/21] Remove last vestiges of TCP graceful disconnect from IMAP code



commit d426c0e14e9abf423998adf0f134c38461b80ce4
Author: Michael Gratton <mike vee net>
Date:   Sun Dec 29 12:27:20 2019 +1030

    Remove last vestiges of TCP graceful disconnect from IMAP code

 src/engine/imap/transport/imap-client-connection.vala | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/src/engine/imap/transport/imap-client-connection.vala 
b/src/engine/imap/transport/imap-client-connection.vala
index 7513adb7..6b742d7b 100644
--- a/src/engine/imap/transport/imap-client-connection.vala
+++ b/src/engine/imap/transport/imap-client-connection.vala
@@ -605,13 +605,6 @@ public class Geary.Imap.ClientConnection : BaseObject, Logging.Source {
     private void on_command_timeout(Command command) {
         this.sent_queue.remove(command);
         command.response_timed_out.disconnect(on_command_timeout);
-
-        // turn off graceful disconnect ... if the connection is hung,
-        // don't want to be stalled trying to flush the pipe
-        TcpConnection? tcp_cx = cx as TcpConnection;
-        if (tcp_cx != null)
-            tcp_cx.set_graceful_disconnect(false);
-
         receive_failure(
             new ImapError.TIMED_OUT(
                 "No response to command after %u seconds: %s",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]