Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 05-03-2004, 12:53 AM   #1
JoC
Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 76
Default [TCL] Script making io freeze.

Hi all!
I am playing around with TCL and I have a problem. I have a script that is run every 5th minute with the ioFTPD sheduler. Problem is that this script sometimes can take 10-15 seconds to execute, and it seems like io freezes until the script is done. Have I done a misstake or is it like this. Can I maybe use some internal timer in the TCL script instead of the sheduler? Any help, code examples or links woul be very much appreciated.
JoC is offline  
Old 05-03-2004, 01:12 AM   #2
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Make sure you have enough worker threads to handle blocking itcl scripts. For performance reasons, itcl only switches thread to mode where it's allowed to block (another thread is spawned, if neccessary to handle pending work requests in-time), when outputting directly to socket) I'm planning to add tcl command that allows scripter to set thread to this mode, when he expects execution of script to take longer than 500ms.
darkone is offline  
Old 05-03-2004, 01:57 AM   #3
JoC
Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 76
Default

Thanks for your fast answer. Do I need to restart io when I have incresed the number of workers threads or will a rehash do the trick?
JoC is offline  
Old 05-03-2004, 02:31 AM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Change in number of threads requires restart atm.
darkone is offline  
Closed Thread

Tags
problem, script, sheduler, tcl, timer

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download grinding to a halt bruceh General Discussion 6 09-07-2004 08:29 AM


All times are GMT -5. The time now is 04:47 AM.

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