Hi David,
"David Wang" <
[email protected]> a écrit dans le message de
Please be more precise. Can you clarify the "connection/session with
IIS" that you are talking about?
IIS and HTTP has no concept of sessions, so if you are asking about
how to "delete" a session, you should ask that in a forum dedicated to
the particular implementation of AJAX on ASP.Net.
Web Services are just SOAP calls made over HTTP to a web server. You
say that AJAX needs to fetch data from it, so contrary to your first
sentence, it would seem that AJAX aspx page *does* need stuff on the
IIS. Please clarify what you are asking to yourself.
The Web Service is not necessarily on the same server, so why do we need IIS
anymore ?
Can you identify or measure the "connection/session with IIS" that is
unnecessarily kept open and should be "deleted".
FYI: HTTP is stateless. Keeping a connection alive is called "HTTP
KeepAlive" and is mutually negotiated between a client and server.
Thus, just because a server and client are conducting request/response
over HTTP, it does not mean that there are connections being kept open
unnecessarily.
Ok my point is: how to delete unuseful resources on the server machine and
avoid to send unuseful data on the network. As you can see, I'm quite a
newbie in this domain... However, there is a notion of "connection" in IIS.
For instance, you can't have more that N (4 I think) simultaneous
connections on a IIS 5.0, you can ask to your IIS Server the number of
connections it is dealing with. So, the IIS should use memory to deal with
this connections... My understanding is that IIS can remember what
connection is still alive (with cookies or URI), so must consume resource
for this.
Now concerning the "HTTP Keep alive", I can imagine that data are sent
periodically on the network, then consuming bandwith. But I don't know at
what level
As this could be completely unuseful with AJAX, I wonder how we could manage
that in order to save resources and bandwith.
Thanks for your answer.