Re: [twsocket] TFtpClient - Quit never returns when not connected!

2006-01-14 Thread Francois PIETTE
Not connected, quit = error code 200 (means OK)
Not connected, any other command = error code 503 or exception.

--
[EMAIL PROTECTED]
http://www.overbyte.be

- Original Message - 
From: Arno Garrels [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Saturday, January 14, 2006 8:02 PM
Subject: Re: [twsocket] TFtpClient - Quit never returns when not connected!


 Francois PIETTE wrote:
 FLastResponse  := '200 OK not connected';

 A 200 answer mean OK, let's continue.
 Probably the message should better be:
503 Bad sequence of commands. Not connected.

 As far as I understand, Quit should _not return any error when not
 connected,

 Yes, it looks reasonable for Quit command only.

 That's obviously why no longer an exception is triggered (which has been
 triggered in older versions).
 What I mean is, either an exception has to be triggered when not connected
 (I can pretty well live with that) or the command must return with an OK.
 Current handling is buggy!

 You change affect all
 commands. At test must be done to select the most appropriate error
 message given the command.

 I haven't the overview of the most appropriate error code. There should
 be an easy solution (raising an exception was easy!).


 wasn't it handled in other classes the same?

 I don't understand this. Sorry.

 As far as I recall in TSmtpCli you may call QUIT w/o raising an exception
 when not connected as well and it returns with a OK-result.


 --
 [EMAIL PROTECTED]
 http://www.overbyte.be
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Throttling for THttpConnection

2006-01-14 Thread Francois PIETTE
Have you seen the code for bandwidth limitation ? It exists since a few 
months and works with a compile time option.

--
[EMAIL PROTECTED]
http://www.overbyte.be

- Original Message - 
From: Fastream Technologies [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Saturday, January 14, 2006 8:47 PM
Subject: [twsocket] Throttling for THttpConnection


 Hello,

 When I run 32 THttpConnection's in a single worker thread, I cannot use 
 the
 throttling with the Sleep() command like in one-thread/connection design 
 as
 the sleep call blocks the other connections as well since they are in the
 same thread context. I know that there is a limitation for number of 
 timers
 per process so here is what I tried:

 - created one timer per thread
 - paused connections in Sleep place
 - resumed them after the calculated ms in timer

 BUT

 - since the timer runs every 20-50 ms (both does the same result), the 
 sleep
 period cannot be less than that! I get inconsistent speed results (for
 example, for a 100kBps, I get a fluctuating value between 89-102kBps). 
 Does
 anybody know a good solution for this problem?

 Best Regards,

 SZ

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Throttling for THttpConnection

2006-01-14 Thread David A. G.
 Have you seen the code for bandwidth limitation ? It exists since a few
 months and works with a compile time option.

Great notice! :o

but where is it?

thanks,
David


- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Saturday, January 14, 2006 5:24 PM
Subject: Re: [twsocket] Throttling for THttpConnection


 Have you seen the code for bandwidth limitation ? It exists since a few
 months and works with a compile time option.

 --
 [EMAIL PROTECTED]
 http://www.overbyte.be

 - Original Message - 
 From: Fastream Technologies [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Saturday, January 14, 2006 8:47 PM
 Subject: [twsocket] Throttling for THttpConnection


 Hello,

 When I run 32 THttpConnection's in a single worker thread, I cannot use
 the
 throttling with the Sleep() command like in one-thread/connection design
 as
 the sleep call blocks the other connections as well since they are in the
 same thread context. I know that there is a limitation for number of
 timers
 per process so here is what I tried:

 - created one timer per thread
 - paused connections in Sleep place
 - resumed them after the calculated ms in timer

 BUT

 - since the timer runs every 20-50 ms (both does the same result), the
 sleep
 period cannot be less than that! I get inconsistent speed results (for
 example, for a 100kBps, I get a fluctuating value between 89-102kBps).
 Does
 anybody know a good solution for this problem?

 Best Regards,

 SZ

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be