By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,401 Members | 803 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,401 IT Pros & Developers. It's quick & easy.

Application Level Thread In ASP.NET

P: n/a
I have ASP.NET application served as Live Web Video Viewer. The javascripts pull each frame(image) from IIS, and IIS pulls live image from Video Source through TCP channel. This works fine, but 1) It is slow because of two Pull Methods. 2) The IIS/Video Source have problem to support more than 10 users.

I modified my TCP Server, and use Push method. I tested with a Windows EXE as TCP Client. The performance was great. I then want to implement this to my ASP.NET application

Can I create a application level thread as TCP client in ASP.NET Global.asax file? The thread can run all the time. The thread will buffer live image to application variables which can be shared by all web users.

If the thread failed for some reasons, can I re-start it from each asp.net page

Your advices are helpful

Thanks.
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Qingdong Z." <an*******@discussions.microsoft.com> wrote in message
news:56**********************************@microsof t.com...
I have ASP.NET application served as Live Web Video Viewer. The javascripts pull each frame(image) from IIS, and IIS pulls live image from
Video Source through TCP channel. This works fine, but 1) It is slow because
of two Pull Methods. 2) The IIS/Video Source have problem to support more
than 10 users.
I modified my TCP Server, and use Push method. I tested with a Windows EXE as TCP Client. The performance was great. I then want to implement this to
my ASP.NET application.
Can I create a application level thread as TCP client in ASP.NET Global.asax file? The thread can run all the time. The thread will buffer
live image to application variables which can be shared by all web users.
Sure. No problem.
If the thread failed for some reasons, can I re-start it from each asp.net

page?

Easiest thing is to not let it fail. In your thread proc have a try/catch
block and in case of an error, write a log entry, wait a bit and retry.

David
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.