• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

FFFTPのソースコードです。


Commit MetaInfo

Revision31385ce7e487689efdeb274fc052d57c07ca3ad4 (tree)
Time2011-10-28 19:33:57
Authors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Change behavior of checking closed sockets for some Windows 2000 environments.

Change Summary

Incremental Difference

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- a/socket.c
+++ b/socket.c
@@ -992,7 +992,7 @@ int do_recv(SOCKET s, char *buf, int len, int flags, int *TimeOutErr, int *Cance
992992 if(Ret != SOCKET_ERROR)
993993 break;
994994 // 何故か一部のホストとWindows 2000の組み合わせで通信できないバグに暫定対応
995- if(AskAsyncDone(s, &Error, FD_CLOSE_BIT) == YES)
995+ if(AskAsyncDone(s, &Error, FD_CLOSE_BIT) == YES && recvS(s, buf, len, MSG_PEEK) <= 0)
996996 break;
997997 Error = WSAGetLastError();
998998 Sleep(1);