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 01-04-2003, 03:30 PM   #1
tuff
Senior Member
FlashFXP Registered User
ioFTPD Scripter
 
Join Date: Jan 2003
Posts: 277
Exclamation Serious Bug? 3.9.1 with events and returning?

i`m attempting to use the [pre] event with stor to process
a file which is about to be uploaded ie. test.rar

[pre]
stor = c:\ioFTPD\ioSFV\ioSFV.itcl

$args now contains `STOR test.rar` (without the `s)

basically i`m comparing $args to catch the STOR
(if {[string match "STOR" [lindex $args 0]]} {......)

now, if you try and return from this routine you`ll get various problems:

return (will stall the client until you manually abort)
}

break (will stall the client until you manually abort)
}

exit (will kill the ftpd completely, needs restarted)
}

using `return` with various args, ie. 0, 1 etc etc has no effect

this will only happen when ioerror is set to something other than 0 ie.

set ioerror 1

i know i can make this as a standalone script, and it will work
without the need for a `return` at all, but id like to keep all
the processes the sfv checker will use in 1 itcl.
tuff is offline   Reply With Quote
Old 01-04-2003, 03:33 PM   #2
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Sounds like you're setting ioerror to value other than 0.
darkone is offline   Reply With Quote
Old 01-04-2003, 05:28 PM   #3
tuff
Senior Member
FlashFXP Registered User
ioFTPD Scripter
 
Join Date: Jan 2003
Posts: 277
Default sorted :)

with thanks to d1 this problem has been sorted

to stop the client from hanging, and return control
you need to pass it:

set ioerror 1
puts "426 Connection closed; transfer aborted."

immediately before you send any other `puts`
tuff is offline   Reply With Quote
Old 01-04-2003, 07:31 PM   #4
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

Great to hear that. I didnt know that as well. It does make complete sense tho.. And the hanging then also makes complete sense..
FTPServerTools is offline   Reply With Quote
Reply

Tags
$args, client, ioerror, stall, stor

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 09:36 AM.

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