Re: [twsocket] ICS threaded server and load balancing

2006-06-19 Thread Arno Garrels
David Hooker wrote: > > So instead of having 100 connections per thread, and then creating a > new thread, and then > another 100 connections, and so on... I want to have 4 threads and > have (number of connections at this present moment) / 4 connections > per thread. I don't see the problem,

Re: [twsocket] ICS threaded server and load balancing

2006-06-19 Thread David Hooker
On 6/14/06, Francois Piette <[EMAIL PROTECTED]> wrote: > > >> OK, but what if I want one thread per CPU? > >> > >> So if I have a 4 CPU rig and 400 connections, I want to > >> have 4 threads and 100 connections per thread. > >> But if the load increases to 600 connections, I want to > >> have 4 thr

Re: [twsocket] TWSocket Digest, Vol 174, Issue 1

2006-06-19 Thread xmedia
Thanks Francois. You are right. I didn't use the latest version. I managed to solve the problem by downloading the latest beta version. Thank you. Wang Date: Sun, 18 Jun 2006 19:27:25 +0200 From: "Francois PIETTE" <[EMAIL PROTECTED]> Subject: Re: [twsocket] HttpCli user authentication whent get()

Re: [twsocket] html code in downloaded file

2006-06-19 Thread Mike Versteeg
Thanks Francois, that explains what's happening. Mike On 6/19/06, Francois PIETTE <[EMAIL PROTECTED]> wrote: > If there is a redirect, ICS may follow it automatically (it does by default > anyway. See property FollowRelocation). BUT you should probably clear the > stream (or use a second one, or

Re: [twsocket] html code in downloaded file

2006-06-19 Thread Francois PIETTE
If there is a redirect, ICS may follow it automatically (it does by default anyway. See property FollowRelocation). BUT you should probably clear the stream (or use a second one, or save the current position to get back later at that position) from the OnLocation event to avoid having the HTML i

[twsocket] html code in downloaded file

2006-06-19 Thread Mike Versteeg
No, it's in the stream alright. As I said, it's some html code. I studied it a bit closer and it's a redirect. I come from Indy and that handled redirects automatically (but I extremly dislike their blocking), so am now browsing ICS's help file (google :) to find out how to enable redirects in Http

Re: [twsocket] html code in downloaded file

2006-06-19 Thread Francois PIETTE
It is likely that you haven't cleared the stream used to receive data for a previous request. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Mike Versteeg" <[EMAIL PROTECTED]> To: Sent: Monday, June 19, 2006 11:37 AM Subject: [twsocket] html code in downloaded

[twsocket] html code in downloaded file

2006-06-19 Thread Mike Versteeg
Hi, I am trying to download a file using HttpCli and TFileStream, but the downloaded file has some html code inserted in front of the actual binary data (announcing the data in plain text). Is there an easier way to remove this than by examining and removing it? I notice IE saves the file without