Re: [twsocket] Error in GET

2006-03-16 Thread Igor Pokorny
Hello friends, I use Fttpsrv against AJAX client. When a client asks twice the same request in a very short time, the second ask ends with an error {probably because of used stream or file]. I am not able to find out the main problem by debugging because it's a question of timing. Just now the ask

Re: [twsocket] send file to a http link or to a linux address using ICS

2006-03-16 Thread Jack
I find that the server side script may require different format. When I did upload to a PHP page, I had to hand craft the MIME content. It may not work with a non-PHP server side. Jack Thursday, March 16, 2006, 4:47:21 AM, you wrote: >> Is it possible to send a file from a windows machine from,

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread Piotr Dałek
Hello! > Is there a way to limit the cpu usage when receiving files thru TWsocket? > Usualy CPU is 90-100% used and the computer freezes for the time the transfer > is made. If you write in a random sized chunks (especially byte-per-write), use some kind of write-buffering filestream (AFAIR Ar

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread Wilfried Mestdagh
Or throttle the sending of the data in the sender application. Now you have probably something like this: Socket.Send(DataChunck, Len); in SocketDataSent: SendNext; in SendNext: // read next chunck from file Socket.Send(DataChunck, Len); == you can change thsi as follow == Socket.Send

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread Dod
Hello iwsc, I don't think you'll bootleneck your hard drive with network data transfert, unless you get many at same time on a Gigabyte LAN ? imc> Indeed the data transfered is continously transfered at high speed and it is written directly to disk. imc> Which is the best method I could use to

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread Guillaume MAISON
> Indeed the data transfered is continously transfered at high speed and it is > written directly to disk. > Which is the best method I could use to slow cpu usage? > - make a timer and send data whith interrupts (but how to make a timer whith > 0.2 seconds step for example?) > - find somehow a

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread [EMAIL PROTECTED]
Indeed the data transfered is continously transfered at high speed and it is written directly to disk. Which is the best method I could use to slow cpu usage? - make a timer and send data whith interrupts (but how to make a timer whith 0.2 seconds step for example?) - find somehow a component t

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread Fastream Technologies
I think he is using sync methods which consume a fake 100% CPU. I experienced the same with TFtpServer 5 years ago before I switched to async. the reason is the default message pump of ICS uses PeekMessage whereas my suggestion is to build a message pump with GetMessage. Best Regards, SubZ --

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread Wilfried Mestdagh
Hello Radu, It is also possible if you send / receive very mutch data at high speed and save to disk or so. This take some time and meanwhile next chunck is probably already received. If this is the reason then you can slow down the sending a little by waiting a littel between data chuncks. You c

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread Francois Piette
> Is there a way to limit the cpu usage when receiving files thru TWsocket? > Usualy CPU is 90-100% used and the computer freezes for > the time the transfer is made. TWSocket component doesn't use much of the CPU. It is likely that in your application you've done some wait loop which eat all CPU

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread Dod
Hello, I think you have a problem because it should not eat 100% CPU nor freeze your system. regards. imc> Hello imc> Is there a way to limit the cpu usage when receiving files thru TWsocket? imc> Usualy CPU is 90-100% used and the computer freezes for the time the transfer is made. imc> Ra

Re: [twsocket] How to benchmark a reverse proxy?

2006-03-16 Thread Dod
Hello, On my Message Tickering server I also get nearly same performances (a bit less because there is user/login request+ settings data sending once logged in). Regards. FT> Hello, FT> We have a beta reverse proxy that when measured with socrates can open FT> 450connections/s with IIS 5.1, w

[twsocket] twsocket cpu usage

2006-03-16 Thread [EMAIL PROTECTED]
Hello Is there a way to limit the cpu usage when receiving files thru TWsocket? Usualy CPU is 90-100% used and the computer freezes for the time the transfer is made. Radu ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web

Re: [twsocket] send file to a http link or to a linux address using ICS

2006-03-16 Thread Francois Piette
> Is it possible to send a file from a windows machine from, lets > say d:/testfile.txt to a weblink (like http://192.168.0.1/datas/upload/) > or phisical address (like //192.168.0.1/datas/upload/) on linux using ICS? > > Assuming that I don't want to install FTP on linux server, is it still > pos

[twsocket] How to benchmark a reverse proxy?

2006-03-16 Thread Fastream Technologies
Hello, We have a beta reverse proxy that when measured with socrates can open 450connections/s with IIS 5.1, which when run directly can supply 750 con./s on the same machine. We have keep-alice HTTP client connection pooling and thread pooling as well as a 32-client/thread arcthecture thanks t

Re: [twsocket] send file to a http link or to a linux address using ICS

2006-03-16 Thread Dod
Hello iwsc, Usually, file upload is a server side feature done thru binary HTTP POST so if you can upload data with a POST, then ICS can do it. Regards. imc> Hello imc> Is it possible to send a file from a windows machine from, lets say d:/testfile.txt to a weblink (like http://192.168.0.1/dat

[twsocket] send file to a http link or to a linux address using ICS

2006-03-16 Thread [EMAIL PROTECTED]
Hello Is it possible to send a file from a windows machine from, lets say d:/testfile.txt to a weblink (like http://192.168.0.1/datas/upload/) or phisical address (like //192.168.0.1/datas/upload/) on linux using ICS? Assuming that I don't want to install FTP on linux server, is it still possi