realbasic-nug
[Top] [All Lists]

Re: Fastest Large file response via RB webserver

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Fastest Large file response via RB webserver
From: Christopher Jett <chris at jettfuel dot net>
Date: Tue, 16 Oct 2007 15:29:10 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <A15AB58F-68E7-42B7-A0D4-962200E9B83D at wam dot net dot au> <D8098698-DDF0-4D8E-8E80-B3FEBF675DA4 at gatorgraphics dot com> <E3D01132-AE4C-4745-A7C1-98BC843DFCE9 at wam dot net dot au> <8418C134-560F-44CF-9B34-3208048BF7F2 at gatorgraphics dot com> <B68BAD0E-50E4-450F-9038-DE14DBFA7D4F at wam dot net dot au> <266F9E53-0A5B-448D-9AF1-A892425572D5 at gatorgraphics dot com>
>>
>> ...and then you are using....
>>
>> me.write( b.Read( bytessent ) )
>>
>> ...something like that in the sendProgress event?
>
> No. The send progress event could fire a lot. You don't want to be
> reading and writing all the time in there and possibly in tiny bits.
> Check to see how many bytesLeft in the buffer you have. If it's below
> a threshold then send some more data. Also, be sure to use the
> SendComplete event to close the connection and do any final cleanup.
> Don't try and do that in the send progress event.

Are you doing an App.DoEvents between checks of BytesLeftToSend?
--
Chris Jett
chris at jettfuel dot net
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>