Hi,
I'm loading images into a client by specifing an aspx page as a source,
as shown in the example below, which uses the webclient to load the
image from a remote resouce, and stream it back to the client:
<img src="/streamer.aspx?s rc=image1" >
<img src="/streamer.aspx?s rc=image2" >
<img src="/streamer.aspx?s rc=image3" >
<img src="/streamer.aspx?s rc=image4" >
<img src="/streamer.aspx?s rc=image5" >
<img src="/streamer.aspx?s rc=image6" >
....
The problem is, it appears that the streamer.aspx is locked, so that
images load sequentially, as one call waits for another to end the
operation before proceeding with it's own operation ... requests are
being qued. Looks like it's a single threaded operation? Is there a
way to force streamer.aspx to span multiple threads of itself, or accept
a number of request, and stream the images back to the client
asynchronously, so that all of them load at the same?
I tried putting the webclient operation in a new thread of its own, but
that doesn't fix it, obviously, as the main thread (that of
streamer.aspx) still waits before all threads it call are completed.
Any pointers would be appreciated. I could write a separate image
delivery server, but that is out of scope of my application, and really
the last resort.
Thanks!
ib. 2 1232
>Ireney Berezniak" <ir************ **@incipio.ca> wrote in message news:UyX9d.885 $z96.575@clgrps 12... Hi,
I'm loading images into a client by specifing an aspx page as a source, as shown in the example below, which uses the webclient to load the image from a remote resouce, and stream it back to the client:
<img src="/streamer.aspx?s rc=image1" > <img src="/streamer.aspx?s rc=image2" > <img src="/streamer.aspx?s rc=image3" > <img src="/streamer.aspx?s rc=image4" > <img src="/streamer.aspx?s rc=image5" > <img src="/streamer.aspx?s rc=image6" > ...
The problem is, it appears that the streamer.aspx is locked, so that images load sequentially, as one call waits for another to end the operation before proceeding with it's own operation ... requests are being qued.
Unless you are doing something to serialize the code inside streamer.aspx,
then it should run concurrently. However Internet Explorer only uses
something like two threads per browser window to retrieve images instead of
requesting them all at the same time. This will cause the images to
download somewhat sequentially. Making the download faster, say by turning
on caching for streamer.aspx may reduce the appearence that the images are
loading one at a time.
David
You may want to try EnableSessionSt ate="false" in the @ Page
directive. Requests attached to a specific session are serialized.
--
Scott http://www.OdeToCode.com/blogs/scott/
On Sat, 09 Oct 2004 20:08:20 GMT, Ireney Berezniak
<ir************ **@incipio.ca> wrote: Hi,
I'm loading images into a client by specifing an aspx page as a source, as shown in the example below, which uses the webclient to load the image from a remote resouce, and stream it back to the client:
<img src="/streamer.aspx?s rc=image1" > <img src="/streamer.aspx?s rc=image2" > <img src="/streamer.aspx?s rc=image3" > <img src="/streamer.aspx?s rc=image4" > <img src="/streamer.aspx?s rc=image5" > <img src="/streamer.aspx?s rc=image6" > ...
The problem is, it appears that the streamer.aspx is locked, so that images load sequentially, as one call waits for another to end the operation before proceeding with it's own operation ... requests are being qued. Looks like it's a single threaded operation? Is there a way to force streamer.aspx to span multiple threads of itself, or accept a number of request, and stream the images back to the client asynchronously , so that all of them load at the same?
I tried putting the webclient operation in a new thread of its own, but that doesn't fix it, obviously, as the main thread (that of streamer.asp x) still waits before all threads it call are completed.
Any pointers would be appreciated. I could write a separate image delivery server, but that is out of scope of my application, and really the last resort.
Thanks!
ib. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dixp |
last post by:
I'm new to writing multithreaded apps and I have a design question. I
have a winforms app and a class which has a method that does processing
which is time intensive. I want the user to be able to kick off the
process and continue to work in the appliaction while getting progress
updates and the ability to cancel. The method that seems easiest to me
is this:
The class exposes certain events for progress. Start, ProgressUpdate,
and...
|
by: mihai |
last post by:
What does the standard say about those two? Is any assurance that the
use of STL is thread safe?
Have a nice day,
Mihai.
|
by: Mark Yudkin |
last post by:
The documentation is unclear (at least to me) on the permissibility of
accessing DB2 (8.1.5) concurrently on and from Windows 2000 / XP / 2003,
with separate transactions scope, from separate threads of a multithreaded
program using embedded SQL. Since the threads do not need to share
transaction scopes, the sqleAttachToCtx family of APIs do not seem to be
necessary.
<quote>
In the default implementation of threaded applications against...
|
by: GianGuz |
last post by:
In the following example Global is able to create and manage access
to objects of any kind (even in a multithreading environment) with
and index value attached to. So a Global<0, string> is a unique
string instance object allocated into the system that can be accessed
from any point into the program simply 'creating' another instance of
Global<int, T> with the same id and type.Like globals, destruction
of these objects is delegated until...
|
by: sarge |
last post by:
I would like to know how to perform simple multithreading.
I had created a simple form to test out if I was multithreading
properly, but got buggy results. Sometime the whole thig would lock
up when I got two threads going at the same time.
What I have is two text boxes (textBox1 and textBox2) and four
buttons(cmdStartThread1, cmdStartThread2, cmdStopThread1,
cmdStopThread2)
| |
by: tommy |
last post by:
hi,
i have found a example for multithreading and asp.net
http://www.fawcette.com/vsm/2002_11/magazine/features/chester/
i want to speed up my website ...
if my website is starting, they should build a database-connection and
send a few sqls
|
by: Rich |
last post by:
Hello,
I have set up a multithreading routine in a Test VB.net
proj, and it appears to be working OK in debug mode and I
am not using synchronization. Multithreading is a new
thing for me, and I just wanted to ask if I am missing
anything based on the following scenario.
My test app pulls data from a large external data source
which has a table-like structure (but not rdbms - more
|
by: Sam |
last post by:
Hi,
I have a serious issue using multithreading. A sample application
showing my issue can be downloaded here:
http://graphicsxp.free.fr/WindowsApplication11.zip
The problem is that I need to call operations on Controls from a
delegate, otherwise it does not work. However each time I've done an
operation, I must update the progressbar and progresslabel, but this
cannot be done in the delegate as it does not work.
|
by: sandy82 |
last post by:
Whats actuallly multithreading is ... and how threading and
multithreading differ .
Can any1 guide how multithreading is used on the Web .. i mean a
practical scenario in which u use multithreading online using C# .
|
by: Ray |
last post by:
Hello,
Greetings! I'm looking for a solid C++ multithreading book. Can you
recommend one? I don't think I've seen a multithreading C++ book that
everybody thinks is good (like Effective C++ or Exceptional C++, for
example). Platform-specific (e.g.: Win32, POSIX) is OK, as long as it's
good :)
Thank you,
Ray
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |