Prechádzať zdrojové kódy

Comment about socket closing

Source commit: 3a6334b18550a892ae2723145c078428af9bd840
Martin Prikryl 7 rokov pred
rodič
commit
e360e03db6
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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