-FTP NOOP command steals text in foreground window

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

-FTP NOOP command steals text in foreground window

Post by *MarcinW »

I'm not sure if this is a bug or as designed, but I experienced a strange behavior.

Steps to reproduce:
1) Open some FTP connection, which sends NOOP command periodically to keep the connection alive.
2) Switch back to local drives, and start some packing-to-archive operation, which takes a lot of time.
3) When packing, a progress window appears, with a string at the top: "ZIP:".
4) When NOOP command time comes, this "ZIP:" string is replaced with: "200 NOOP command successful".

Same situation also when copying or deleting in the foreground, instead of packing.


Screenshot:

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="ZIP_NOOP.png"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ZIP_NOOP.png"

iVBORw0KGgoAAAANSUhEUgAAAccAAAGQBAMAAAApWbbOAAAAKXRFWHRDcmVhdGlvbiBUaW1lAE4g
OSBtYXIgMjAxNCAwMzozMDo1OCArMDEwMOyabI8AAAAHdElNRQfeAwkCIhkeFdgrAAAACXBIWXMA
AAsSAAALEgHS3X78AAAABGdBTUEAALGPC/xhBQAAAC1QTFRFQEBA09DIgICA/v7+AAAABhdxKUy3
kSsyED7ESXXf11Rfu7u/3t7hGkbLvr7CeFaHhwAAD85JREFUeNrtnb2OJDUXhkfamRyzJ0FICFiR
I/qbAETAEb4AYLQSMRJ7CxATTUiyaDcj3oxL2BBpb4ELIOEavvL5sV0/Xd2uripXu/xu73RPTXe1
nz6269jV9frGlK/bm6eH0vVFA5n7c15c7+8G8nnZ+p4h/3j99bsP/32RuzTLQr78593bxw8ef85d
nEv0IL3ME7m/0w13AfKjx78ff8pd0Isgpf09kfs73RAg3/7XQP7WftlhdKfjf80J+WmjTwYgH81f
7xxkE90AcKA6cJ2QzxwkYHPzkK9eN3rlIunx+OcIyXYhnzWhIkhjm38B8pHEkE3w5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
kKWoQpaiHiQbVaiXgFxwHK05kFFWruS23mnbr2GAvtDypNYYpwepVgL+pd5rwHsMZBJEjhMRJDCZ
FBrUcmIU0gTnC3VjAb81K6SJIWVOUyD9JfJcWtuZ1R2DVIuPDUFiGxKM+B6kQqqpg/eXt+i35m2T
4pXDhgWgYUDfsAz7qYhhzCgkekhxvRD7oC1E0hsjCqQ35/CFFsubE5DBnCKGVNeM3JDizcj2KNLX
WoXU5qXGJcch0YTnB8iw5kBGxFAQgQQtcSqkrC4QIKmWhzUHMopttKLjZAzJhcbzjpMlqkKWogpZ
iipkKepAJk3WfZ678FMhU1778Ym/22SN7m56AJaE/DZ1rvR2HHJy2RaFTNkZlaVCbhUSkpQLUn3n
JkKmjcxyQXoz22mQHUH7I+vs+uxI+l54oGz6BitCdiLZ2Vt31+dC+rH7jJBs8zowZE6OZId5aiTn
hqQ2qSsmdgs5IZJGl0kVG9CWUiB1CUTnDYrkZ+o8i0N7SIukkUUUsd8JTYukLJOqzqhBaW0S2N8V
jLeCtnEcEiFj1+dUyKFIWlk31D1oKymS5JiLMSReCmmnVddjH1k8D+WV0iZBHXNngiQT64kdT793
bS/k21YqJC9JqsbJ0yFHNek4KcukDnQ8SW3SffLc61t2Fmfv60kdz4WQa2Q8wwfybJGE8RHjuZFs
7QaO5J2FRfKMstVRyMWQaVoNMuVCzJOQqVd2rgT53k2KTrzRN0k7a3QCcnIAlpx3nXm2bnoA9ji5
XKYqZCmqkKWoQpaiClmK9gJZijvNiG5ThwrXqNv/A7M6pcUReCh7AAAAAElFTkSuQmCC
Regards
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, this happens because it's a foreground connection, and you open a foreground progress dialog. Currently there is no way to avoid this, sorry. I could suspend keep alive while a foreground operation is going on, but there would be a risk to lose the connection then.
Author of Total Commander
https://www.ghisler.com
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

Yes, you are right, the NOOP command should stay as it is. However, there should be an easy way to stop NOOP command from sending its status to progress windows, that doesn't handle the current FTP connection. Maybe some additional property of the progress dialog, containing FTP connection ID (or -1 for local operations)...

Regards
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem is that the command must go to the progress dialog in some cases, e.g. when reading directories, downloading or uploading files, deleting files...
Author of Total Commander
https://www.ghisler.com
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

Yes... This is not really a big problem, however what about this: TC knows the source and the destination of the current foreground operation (when copying for example) or just the target (when deleting). Maybe source and target could be checked before updating the dialog text - so text could be changed only if the dialog really works with that FTP connection, that sends status messages.
Post Reply