Преглед на файлове

Comment about socket closing

Source commit: 3a6334b18550a892ae2723145c078428af9bd840
Martin Prikryl преди 7 години
родител
ревизия
e360e03db6
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      source/filezilla/TransferSocket.cpp

+ 3 - 0
source/filezilla/TransferSocket.cpp

@@ -1141,6 +1141,9 @@ void CTransferSocket::CloseOnShutDownOrError(int Mode)
 {
   if (ShutDown())
   {
+    // It would probably be correct to remove this call, and wait for OnClose (FD_CLOSE),
+    // where CloseAndEnsureSendClose is called too.
+    // See https://docs.microsoft.com/en-us/windows/desktop/winsock/graceful-shutdown-linger-options-and-socket-closure-2
     CloseAndEnsureSendClose(Mode);
   }
   else