• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

FFFTPのソースコードです。


Commit MetaInfo

Revision220259b82de9f52909f914b9947e3310c0ff3390 (tree)
Zeit2014-11-01 12:12:21
Autors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Change error handling for file transfer.
Modify documents.

Ändern Zusammenfassung

Diff

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/FFFTP_Eng_Release_64/FFFTP.exe and b/FFFTP_Eng_Release_64/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
Binary files a/Release_64/FFFTP.exe and b/Release_64/FFFTP.exe differ
--- a/common.h
+++ b/common.h
@@ -1669,6 +1669,8 @@ void ReformVMSDirName(char *DirName, int Flg);
16691669 #endif
16701670 // 自動切断対策
16711671 void NoopProc(int Force);
1672+// 同時接続対応
1673+void AbortRecoveryProc(void);
16721674
16731675 /*===== local.c =====*/
16741676
--- a/doc/eng/FFFTP.txt
+++ b/doc/eng/FFFTP.txt
@@ -92,6 +92,8 @@ Changes in Ver.1.99
9292 before it.
9393 This feature is enabled by default.
9494
95+-- Changed to enable reconnection after transfer errors by default.
96+
9597
9698 Outline
9799 -------
--- a/doc/eng/history.txt
+++ b/doc/eng/history.txt
@@ -64,6 +64,8 @@ Changes in Ver.1.99
6464 before it.
6565 This feature is enabled by default.
6666
67+-- Changed to enable reconnection after transfer errors by default.
68+
6769 Changes in Ver.1.98g2
6870 --------------------
6971
--- a/doc/jpn/FFFTP.txt
+++ b/doc/jpn/FFFTP.txt
@@ -96,6 +96,8 @@ Ver 1.99
9696  中止する設定を追加しました。
9797  この機能は既定では有効になります。
9898
99+・ファイルの転送に失敗した場合に再接続する設定を既定で有効にしました。
100+
99101
100102 Ver 1.96d以前へ戻す場合
101103 -----------------------
--- a/doc/jpn/history.txt
+++ b/doc/jpn/history.txt
@@ -68,6 +68,8 @@ FFFTP
6868  中止する設定を追加しました。
6969  この機能は既定では有効になります。
7070
71+・ファイルの転送に失敗した場合に再接続する設定を既定で有効にしました。
72+
7173 ■Ver 1.98g2
7274
7375 ・インストーラ版にZIP版のファイルが混入していた問題を修正しました。
--- a/ftpproc.c
+++ b/ftpproc.c
@@ -3787,3 +3787,22 @@ void NoopProc(int Force)
37873787 }
37883788 }
37893789
3790+// 同時接続対応
3791+void AbortRecoveryProc(void)
3792+{
3793+ CancelFlg = NO;
3794+ if(AskReuseCmdSkt() == NO || AskShareProh() == YES || AskTransferNow() == NO)
3795+ {
3796+ if(AskErrorReconnect() == YES)
3797+ {
3798+ DisableUserOpe();
3799+ ReConnectCmdSkt();
3800+ GetRemoteDirForWnd(CACHE_REFRESH, &CancelFlg);
3801+ EnableUserOpe();
3802+ }
3803+ else
3804+ RemoveReceivedData(AskCmdCtrlSkt());
3805+ }
3806+ return;
3807+}
3808+
--- a/hostman.c
+++ b/hostman.c
@@ -1435,7 +1435,7 @@ void CopyDefaultDefaultHost(HOSTDATA *Set)
14351435 Set->TransferErrorMode = EXIST_OVW;
14361436 Set->TransferErrorNotify = YES;
14371437 // セッションあたりの転送量制限対策
1438- Set->TransferErrorReconnect = NO;
1438+ Set->TransferErrorReconnect = YES;
14391439 return;
14401440 }
14411441
--- a/main.c
+++ b/main.c
@@ -1167,8 +1167,8 @@ static LRESULT CALLBACK FtpWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA
11671167 case WM_COMMAND :
11681168 // 同時接続対応
11691169 // 中断後に受信バッファに応答が残っていると次のコマンドの応答が正しく処理できない
1170- if(CancelFlg == YES)
1171- RemoveReceivedData(AskCmdCtrlSkt());
1170+ if(AskUserOpeDisabled() == NO && CancelFlg == YES)
1171+ AbortRecoveryProc();
11721172 switch(LOWORD(wParam))
11731173 {
11741174 case MENU_CONNECT :
@@ -2513,6 +2513,9 @@ static void ExitProc(HWND hWnd)
25132513
25142514 CancelFlg = YES;
25152515
2516+ // バグ対策
2517+ DisableUserOpe();
2518+
25162519 CloseTransferThread();
25172520
25182521 if(SaveExit == YES)