April 14, 2002 at 11:24 am
quote:
Eugene HertzLets suppose I have 100,000 browsing customers of my website. With http 1.1, I will have essentially 100,000 port 80 sockets opened to my web server(s).
If I now do this activex streaming quote idea, then I will essentially have two sockets opened per browser, one for the standard http port 80 traffic and then a second one for the streaming quotes.. This effectively doubles the number of open sockets from 100,000 to 200,000, which could pose a problem for the capacity of my equipment.
Is there a way to use the existing http 1.1 port 80 socket already established to "push" this information to the active x component living in my browser page?
Is there some dll that can be written on the web server that allows me to push through that connection?
And if so, how would I distinguish any given socket so that I can push the right information to the right customer!??!
Whew! My head is swimming!
April 14, 2002 at 1:52 pm
Im not an expert on the Http protocol but I do not believe that it works this way. I pulled this from microsofts web site:
HTTP
HTTP, or Hypertext Transfer Protocol, is a communication protocol used to exchange packets of information between two computers across the Internet using a TCP/IP backbone. In an HTTP transaction, the system opens a connection between a client browser and a Web server, submits a request for data to the Web server, returns the Web server's response to the client, then closes the connection. HTTP is stateless in that no information about the request is maintained after the connection closes.
Im sure you could use performance monitor to verify this but I think a new connection would be created every time xmlHttp posted a request to the server then after it gets the response back I think the connection would get closed.
As far as distinguishing any given socket you could not. You could distinguish the user via cookies or session variable.
You may also want to go to msdn.microsoft.com and search on browser push content. There are technologies out there to allow sites to push data to customers.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply