Go Back   FlashFXP Forums > > > >

Bug Reports If you discover any bugs that we are not aware of, please post it here so it may be corrected.

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-24-2003, 07:37 PM   #1
SnypeTEST
Senior Member
ioFTPD Scripter
 
Join Date: Feb 2003
Posts: 458
Default OnUploadComplete

got this problem, ioftpd.exe running OnUploadComplete more than 1 time for 1 file.

I made an exe that would print "!putlog $filename". while simulating a 7User Race on my lan, got this in ioftpd.log

* only pasting the doubles that appeared *

09-24-2003 20:11:18 10-50_cent-the_blast_(feat._g-unit)_(freestyle)-osc.mp3
09-24-2003 20:11:18 10-50_cent-the_blast_(feat._g-unit)_(freestyle)-osc.mp3
09-24-2003 20:11:18 11-50_cent-your_after_my_chedda_(feat._g-unit)_(freestyle)-osc.mp3
09-24-2003 20:11:18 11-50_cent-your_after_my_chedda_(feat._g-unit)_(freestyle)-osc.mp3


my ioftpd thread settings are
Worker_Thread_Min = 5 # Minimum amount of worker threads
Worker_Thread_Max = 10 # Maximum amount
Io_Thread_Count = 3 # Io Threads

before I had min = 10 , max = 20 , threadcount = 6 , then I tired lower value, same prob.

using ioftpod 5.0.13

[Events]
;OnFtpNewDir = ..\newdir\newdirlog.itcl
OnFtpDelDir = ..\psio\pSio.exe DELDIR
;OnUploadComplete = iotrial.exe UD
OnUploadComplete = ..\psio\pSio.exe UD
;OnUploadError =
;OnUploadComplete =
;OnDownloadError =
;OnDownloadComplete =
;OnResume =
;OnUpload =
;OnFtpNewDir =
;OnFtpDelDir =
;OnFtpLogIn =
;OnTelnetLogIn =
;OnHttpLogIn =
;OnServerStart =
;OnServerStop =
SnypeTEST is offline   Reply With Quote
Old 09-24-2003, 08:05 PM   #2
SnypeTEST
Senior Member
ioFTPD Scripter
 
Join Date: Feb 2003
Posts: 458
Default

Also tried it with a .bat file onuploadcomplete.

start bat file
=========
@echo off
@echo !putlog %1
=========
end bat file

output to log:

Quote:
09-24-2003 20:58:57 "k:\ioFTPD\site\MP3\50_Cent-Gangster_and_A_Gentleman_(Part_1)-2003-OSC\00-50_cent-gangster_and_a_gentleman_(part_1)-2003-osc.sfv"
09-24-2003 20:58:58 "k:\ioFTPD\site\MP3\50_Cent-Gangster_and_A_Gentleman_(Part_1)-2003-OSC\00-50_cent-gangster_and_a_gentleman_(part_1)-2003-osc.nfo"
09-24-2003 20:58:58 "k:\ioFTPD\site\MP3\50_Cent-Gangster_and_A_Gentleman_(Part_1)-2003-OSC\00-50_cent-gangster_and_a_gentleman_(part_1)-2003-osc.nfo"
09-24-2003 20:58:58 "k:\ioFTPD\site\MP3\50_Cent-Gangster_and_A_Gentleman_(Part_1)-2003-OSC\00-50_cent-gangster_and_a_gentleman_(part_1)-2003-(back_cover)-osc.jpg"
09-24-2003 20:58:58 "k:\ioFTPD\site\MP3\50_Cent-Gangster_and_A_Gentleman_(Part_1)-2003-OSC\00-50_cent-gangster_and_a_gentleman_(part_1)-2003-(back_cover)-osc.jpg"
09-24-2003 20:58:59 "k:\ioFTPD\site\MP3\50_Cent-Gangster_and_A_Gentleman_(Part_1)-2003-OSC\00-50_cent-gangster_and_a_gentleman_(part_1)-2003-(front_cover)-osc.jpg"
09-24-2003 20:58:59 "k:\ioFTPD\site\MP3\50_Cent-Gangster_and_A_Gentleman_(Part_1)-2003-OSC\00-50_cent-gangster_and_a_gentleman_(part_1)-2003-(front_cover)-osc.jpg"
09-24-2003 20:58:59 "k:\ioFTPD\site\MP3\50_Cent-Gangster_and_A_Gentleman_(Part_1)-2003-OSC\00-50_cent-gangster_and_a_gentleman_(part_1)-2003-osc.m3u"
09-24-2003 20:58:59 "k:\ioFTPD\site\MP3\50_Cent-Gangster_and_A_Gentleman_(Part_1)-2003-OSC\00-50_cent-gangster_and_a_gentleman_(part_1)-2003-osc.m3u"
09-24-2003 20:58:59 "k:\ioFTPD\site\MP3\50_Cent-Gangster_and_A_Gentleman_(Part_1)-2003-OSC\01-50_cent-wnta_mixtape_radio_concert_intro-osc.mp3"
09-24-2003 20:59:00 "k:\ioFTPD\site\MP3\50_Cent-Gangster_and_A_Gentleman_(Part_1)-2003-OSC\01-50_cent-wnta_mixtape_radio_concert_intro-osc.mp3"
see jpg/nfo/and mp3 file doubled..
SnypeTEST is offline   Reply With Quote
Old 09-24-2003, 11:09 PM   #3
GOD-EMPEROR
Member
ioFTPD Registered User
 
Join Date: Sep 2002
Posts: 42
Default

just fyi, if you @echo off.... you don't have to add @ to echo the text.... likewise if you use @echo text then you don't to turn echo off heh
GOD-EMPEROR is offline   Reply With Quote
Old 10-01-2003, 09:02 PM   #4
SnypeTEST
Senior Member
ioFTPD Scripter
 
Join Date: Feb 2003
Posts: 458
Default

d1, you havent noticed this post yet , bug still exist in b51x btw.
SnypeTEST is offline   Reply With Quote
Old 10-01-2003, 10:13 PM   #5
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

my guess:
related to the OnUploadComplete being executed on ABORT.
Thus your OnUploadComplete being execute for the uploaded file, and for the cancelled upload when another thread tried uploading same file...
but dark: that would mean that the bug isn't on abort only ..? Or maybe Snype hit abort a couple of times...?
Mouton is offline   Reply With Quote
Old 10-01-2003, 10:21 PM   #6
SnypeTEST
Senior Member
ioFTPD Scripter
 
Join Date: Feb 2003
Posts: 458
Default

Mouton, I just ran ultrafxp , connect 6 times and upload files from the same folder to simulate a race. the .bat file captures more doubles than the sample .exe I was using, maybe because it executed faster though.
SnypeTEST is offline   Reply With Quote
Old 10-01-2003, 10:53 PM   #7
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Are you sure it runs script twice? or could it be that log is written twice?
darkone is offline   Reply With Quote
Old 10-01-2003, 11:33 PM   #8
SnypeTEST
Senior Member
ioFTPD Scripter
 
Join Date: Feb 2003
Posts: 458
Default

well it only has 1 line of code that write to log...

echo !putlog %1

:-/ the only way it could do it twice for the same file in the same dir is if its ran twice onuploadcomplete... well anyway, for new psio (my zipscript) , I just pre-check to see if file was already checked to get rid of duplicates... also, Bad|'s script doesnt work on ioftpd b5xx because of this bug.
SnypeTEST is offline   Reply With Quote
Old 10-02-2003, 12:06 AM   #9
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Can't you try..?

@echo %1 > c:\dump
darkone is offline   Reply With Quote
Old 10-03-2003, 08:38 AM   #10
b>d>>s
Senior Member
 
Join Date: Feb 2003
Posts: 488
Default

i just tried above .bat on 513r and the uploaded file disappears and no dump.

i have exactly what you put above OnUploadComplete, works on 494r :/
b>d>>s is offline   Reply With Quote
Old 10-03-2003, 05:26 PM   #11
b>d>>s
Senior Member
 
Join Date: Feb 2003
Posts: 488
Default

i added 'exit 0', same result as above :/
b>d>>s is offline   Reply With Quote
Old 10-03-2003, 07:20 PM   #12
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

You did remember to use EXEC before your test bat?
darkone is offline   Reply With Quote
Old 10-03-2003, 07:36 PM   #13
b>d>>s
Senior Member
 
Join Date: Feb 2003
Posts: 488
Default

aaaaaaaaaaah, shit. no. 2 secs ........
b>d>>s is offline   Reply With Quote
Old 10-03-2003, 07:39 PM   #14
b>d>>s
Senior Member
 
Join Date: Feb 2003
Posts: 488
Default

oooooooooooooow, so this is what i get in dump, a bit odd.

Code:
"d:\\Big-Midi-Packs-&-Twiddly-Bits\mas.nfo"
double \ ?

and console i get (on completion).

Code:
150 Opening ASCII mode data connection for mas.nfo.
226-D:\ioFTPD\system>exit 0
b>d>>s is offline   Reply With Quote
Old 10-03-2003, 09:46 PM   #15
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

It might use two '\' chars if you're using uploading to drive's root... :I
darkone is offline   Reply With Quote
Reply

Tags
09-24-2003, 201118, ;onftpnewdir, onuploadcomplete, psiopsio.exe

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:57 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)