michaellukashov / Far-NetBox

SFTP/SCP/FTP/FTPS/WebDAV/S3 client for Far Manager 3 (http://farmanager.com/)
https://forum.farmanager.com/viewtopic.php?t=6317
GNU General Public License v2.0
157 stars 52 forks source link

FAR3 зависает, если прервать upload по ESC с подтверждением #153

Open z0hm opened 9 years ago

z0hm commented 9 years ago

В процессе upload'a файла нажимаем ESC и подтверждаем прерывание - передача (трафик) прерывается, но диалог upload'a остаётся висеть, а вместе с ним и FAR3. Процесс приходится убивать. Результат аналогичен на разных ФТП серверах. --- Log ---: . 2015-06-11 11:10:44.375 NetBox Version 2.1.41 (Build 373) (OS 5.1.2600 Service Pack 2 - Microsoft Windows XP) . 2015-06-11 11:10:44.375 Configuration: NetBox 3\ . 2015-06-11 11:10:44.375 Working directory: Z:\TEMP . 2015-06-11 11:10:44.375 Warning: System option "Automatically adjust clock for Daylight Saving Time" is disabled, timestamps will not be represented correctly . 2015-06-11 11:10:44.375 Login time: 11.06.2015 11:10:44 . 2015-06-11 11:10:44.375 Host name: xxx.xxx.xxx.xxx (Port: 21) . 2015-06-11 11:10:44.375 Transfer Protocol: FTP . 2015-06-11 11:10:44.375 Code Page: 0 . 2015-06-11 11:10:44.375 Ping type: C, Ping interval: 30 sec; Timeout: 90 sec . 2015-06-11 11:10:44.375 Disable Nagle: No . 2015-06-11 11:10:44.375 Proxy: none . 2015-06-11 11:10:44.375 Send buffer: 262144 . 2015-06-11 11:10:44.375 UTF: 0 . 2015-06-11 11:10:44.375 FTP: FTPS: None; Passive: No [Force IP: A]; MLSD: A [List all: A] . 2015-06-11 11:10:44.375 Local directory: default, Remote directory: /1, Update: Yes, Cache: Yes . 2015-06-11 11:10:44.375 Cache directory changes: Yes, Permanent: Yes . 2015-06-11 11:10:44.375 Timezone offset: 0h 0m . 2015-06-11 11:10:44.375 Connecting to xxx.xxx.xxx.xxx ... . 2015-06-11 11:10:44.406 Connected with xxx.xxx.xxx.xxx. Waiting for welcome message... < 2015-06-11 11:10:44.593 220 Xlight FTP Server 3.7 ready...

2015-06-11 11:10:44.593 USER xxx < 2015-06-11 11:10:44.984 331 Password required for xxx 2015-06-11 11:10:44.984 PASS **** < 2015-06-11 11:10:45.296 230 Login OK 2015-06-11 11:10:45.296 SYST < 2015-06-11 11:10:45.343 215 UNIX Type: L8 2015-06-11 11:10:45.343 FEAT < 2015-06-11 11:10:45.468 211-Features supported < 2015-06-11 11:10:45.468 REST STREAM < 2015-06-11 11:10:45.468 EPRT < 2015-06-11 11:10:45.515 EPSV < 2015-06-11 11:10:45.515 SIZE < 2015-06-11 11:10:45.515 MDTM < 2015-06-11 11:10:45.562 MFMT < 2015-06-11 11:10:45.562 AUTH < 2015-06-11 11:10:45.562 PBSZ < 2015-06-11 11:10:45.609 PROT < 2015-06-11 11:10:45.609 MLST type;size;modify_; < 2015-06-11 11:10:45.609 MLSD < 2015-06-11 11:10:45.609 UTF8 < 2015-06-11 11:10:45.609 211 End . 2015-06-11 11:10:45.671 Connected . 2015-06-11 11:10:45.671 Got reply 1 to the command 1 . 2015-06-11 11:10:45.671 Using FTP protocol. . 2015-06-11 11:10:45.671 Doing startup conversation with host. 2015-06-11 11:10:45.671 PWD < 2015-06-11 11:10:45.796 257 "/" . 2015-06-11 11:10:45.796 Got reply 1 to the command 16 . 2015-06-11 11:10:45.796 Changing directory to "/1". 2015-06-11 11:10:45.796 CWD /1 < 2015-06-11 11:10:45.890 250 Directory successfully changed . 2015-06-11 11:10:45.890 Got reply 1 to the command 16 . 2015-06-11 11:10:45.890 Getting current directory name. 2015-06-11 11:10:45.890 PWD < 2015-06-11 11:10:46.015 257 "/1" . 2015-06-11 11:10:46.015 Got reply 1 to the command 16 . 2015-06-11 11:10:46.015 Retrieving directory listing... 2015-06-11 11:10:46.015 TYPE A < 2015-06-11 11:10:46.140 200 Type set to A. 2015-06-11 11:10:46.187 PORT 192,168,1,2,17,163 < 2015-06-11 11:10:46.296 200 PORT command successful 2015-06-11 11:10:46.296 MLSD < 2015-06-11 11:10:46.437 150 Opening ASCII mode data connection for MLSD (56 bytes). < 2015-06-11 11:10:46.468 226 Transfer complete (0.350 KB/s). . 2015-06-11 11:10:46.796 size=0;type=cdir;perm=eclmdf;modify=20150611080951; /1 . 2015-06-11 11:10:46.843 Directory listing successful . 2015-06-11 11:10:46.843 Got reply 1 to the command 2 . 2015-06-11 11:10:46.843 LIST with -a switch returned empty directory listing, will try pure LIST . 2015-06-11 11:10:46.843 Retrieving directory listing... 2015-06-11 11:10:46.843 TYPE A < 2015-06-11 11:10:47.015 200 Type set to A. 2015-06-11 11:10:47.015 PORT 192,168,1,2,17,164 < 2015-06-11 11:10:47.062 200 PORT command successful 2015-06-11 11:10:47.062 MLSD < 2015-06-11 11:10:47.171 150 Opening ASCII mode data connection for MLSD (56 bytes). . 2015-06-11 11:10:47.171 size=0;type=cdir;perm=eclmdf;modify=20150611080951; /1 < 2015-06-11 11:10:47.234 226 Transfer complete (0.350 KB/s). . 2015-06-11 11:10:47.281 Directory listing successful . 2015-06-11 11:10:47.281 Got reply 1 to the command 2 . 2015-06-11 11:10:47.281 ..;D;0;1899-12-30T1190:02:47.297Z;"" [0];"" [0];---------;0 . 2015-06-11 11:10:47.281 Startup conversation with host finished. . 2015-06-11 11:11:16.234 Copying 1 files/directories to remote directory "/1/" . 2015-06-11 11:11:16.234 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: ; Resume: S (102400); CalcS: Yes; Mask: 1 . 2015-06-11 11:11:16.234 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0 . 2015-06-11 11:11:16.234 AscM: ._html; .htm; .txt; .php; .php3; .cgi; .c; .cpp; .h; .pas; .bas; .tex; .pl; .js; .htaccess; .xtml; .css; .cfg; .ini; .sh; .xml . 2015-06-11 11:11:16.234 File: 'Z:\TEMP\1' [2015-06-11T08:02:19.328Z] [5383922] . 2015-06-11 11:11:16.234 Copying "Z:\TEMP\1" to remote directory started. . 2015-06-11 11:11:16.234 Binary transfer mode selected. . 2015-06-11 11:11:16.234 Starting upload of Z:\TEMP\1 2015-06-11 11:11:16.234 TYPE I < 2015-06-11 11:11:16.453 200 Type set to I. 2015-06-11 11:11:16.453 PORT 192,168,1,2,17,165 < 2015-06-11 11:11:16.531 200 PORT command successful 2015-06-11 11:11:16.578 STOR 1 < 2015-06-11 11:11:16.687 150 Opening BINARY mode data connection for 1. . 2015-06-11 11:11:45.203 Upload aborted . 2015-06-11 11:11:45.203 Got reply 4804 to the command 4 2015-06-11 11:11:46.375 TYPE A < 2015-06-11 11:11:46.656 226 Transfer complete (169.422 KB/s). < 2015-06-11 11:11:46.703 200 Type set to A. . 2015-06-11 11:11:46.750 Retrieving directory listing... 2015-06-11 11:11:46.750 TYPE A < 2015-06-11 11:11:46.812 200 Type set to A. 2015-06-11 11:11:46.812 PORT 192,168,1,2,17,166 < 2015-06-11 11:11:46.906 200 PORT command successful 2015-06-11 11:11:46.906 MLSD < 2015-06-11 11:11:47.000 150 Opening ASCII mode data connection for MLSD (116 bytes). -- здесь лог обрывается, так как FAR3 после нажатия OK зависает --

VictorVG commented 9 years ago

Похоже что тут:

_. 2015-06-11 11:11:16.234 PrTime: Yes; PrRO: No; _Rght: rw-r--r--;* PrR: No (No); FnCs: N; RIC: ; Resume: S (102400); CalcS: Yes; Mask: 1* - тут крепко бобик порылся - CHMOD 644 :), а далее ожидаемо:

_< 2015-06-11 11:11:16.687 150 Opening BINARY mode data connection for 1. *_. 2015-06-11 11:11:45.203 Upload aborted* . 2015-06-11 11:11:45.203 Got reply 4804 to the command 4

а вот зависание задачи в в данном случае я бы предположительно объяснил выводом улетевшего в фон сообщения об ошибке - задача ждёт нашей реакции, да вот мы его на экране не видим...