Bug Reports If you discover any bugs that we are not aware of, please post it here so it may be corrected. |
09-24-2003, 07:37 PM
|
#1
|
Senior Member
ioFTPD Scripter
Join Date: Feb 2003
Posts: 458
|
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 =
|
|
|
09-24-2003, 08:05 PM
|
#2
|
Senior Member
ioFTPD Scripter
Join Date: Feb 2003
Posts: 458
|
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..
|
|
|
09-24-2003, 11:09 PM
|
#3
|
Member
ioFTPD Registered User
Join Date: Sep 2002
Posts: 42
|
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
|
|
|
10-01-2003, 09:02 PM
|
#4
|
Senior Member
ioFTPD Scripter
Join Date: Feb 2003
Posts: 458
|
d1, you havent noticed this post yet , bug still exist in b51x btw.
|
|
|
10-01-2003, 10:13 PM
|
#5
|
Posse Member
Ultimate Scripter ioFTPD Administrator
Join Date: Dec 2002
Posts: 1,956
|
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...?
|
|
|
10-01-2003, 10:21 PM
|
#6
|
Senior Member
ioFTPD Scripter
Join Date: Feb 2003
Posts: 458
|
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.
|
|
|
10-01-2003, 10:53 PM
|
#7
|
Disabled
FlashFXP Registered User ioFTPD Administrator
Join Date: Dec 2001
Posts: 2,230
|
Are you sure it runs script twice? or could it be that log is written twice?
|
|
|
10-01-2003, 11:33 PM
|
#8
|
Senior Member
ioFTPD Scripter
Join Date: Feb 2003
Posts: 458
|
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.
|
|
|
10-02-2003, 12:06 AM
|
#9
|
Disabled
FlashFXP Registered User ioFTPD Administrator
Join Date: Dec 2001
Posts: 2,230
|
Can't you try..?
@echo %1 > c:\dump
|
|
|
10-03-2003, 08:38 AM
|
#10
|
Senior Member
Join Date: Feb 2003
Posts: 488
|
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 :/
|
|
|
10-03-2003, 05:26 PM
|
#11
|
Senior Member
Join Date: Feb 2003
Posts: 488
|
i added 'exit 0', same result as above :/
|
|
|
10-03-2003, 07:20 PM
|
#12
|
Disabled
FlashFXP Registered User ioFTPD Administrator
Join Date: Dec 2001
Posts: 2,230
|
You did remember to use EXEC before your test bat?
|
|
|
10-03-2003, 07:36 PM
|
#13
|
Senior Member
Join Date: Feb 2003
Posts: 488
|
aaaaaaaaaaah, shit. no. 2 secs ........
|
|
|
10-03-2003, 07:39 PM
|
#14
|
Senior Member
Join Date: Feb 2003
Posts: 488
|
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
|
|
|
10-03-2003, 09:46 PM
|
#15
|
Disabled
FlashFXP Registered User ioFTPD Administrator
Join Date: Dec 2001
Posts: 2,230
|
It might use two '\' chars if you're using uploading to drive's root... :I
|
|
|
Thread Tools |
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:56 AM.
|