469,938 Members | 2,458 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,938 developers. It's quick & easy.

WebService: How to close a connection after a completed request

I have a web service that gets data from clients. It appears that each
time a client connects to the webservice, a new connection/session is
created on the server side (IIS 5.1). After 10 calls to the webservice,
I start getting errors when connecting (too many connections). The
client program have to wait for a few minutes to start sending data
again.

I have tried using session.Abandon in the web method to close a
connection after a successfull request. But this has not helped.

How should I close a session in the web service so that I don't run
into the 10 connection limit? Any help would be appreciated. TIA.

Manoj

Nov 17 '05 #1
3 7108
Hi,

Are you accesing to a DB from the WS ?

Do you open/close the connection each time?
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Nov 17 '05 #2
No, I am only accessing the filesystem on the server to save files sent
from clients through the web service.

My issue is with the web service creating a new session each time I
make a call to a web method. Since the number of concurrent
sessions/connections on a XP pro machine with IIS 5 is limited to 10,
the web method calls fail after the 10th call.

What I would like is to close the session after making the call to a
web method. I have tried using Session.Abandon in the web method but
that does not appear to be closing the session.

I hope I was clear this time. Thanks for your time.

Manoj
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,

Are you accesing to a DB from the WS ?

Do you open/close the connection each time?
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


Nov 17 '05 #3
Hi,

What if you change the TTL of the session?
Decrease it to 1 min for example and see what happens

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Manoj Kumar" <ma****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
No, I am only accessing the filesystem on the server to save files sent
from clients through the web service.

My issue is with the web service creating a new session each time I
make a call to a web method. Since the number of concurrent
sessions/connections on a XP pro machine with IIS 5 is limited to 10,
the web method calls fail after the 10th call.

What I would like is to close the session after making the call to a
web method. I have tried using Session.Abandon in the web method but
that does not appear to be closing the session.

I hope I was clear this time. Thanks for your time.

Manoj
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,

Are you accesing to a DB from the WS ?

Do you open/close the connection each time?
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Johnnie | last post: by
1 post views Thread by Nalaka | last post: by
8 posts views Thread by kenneth fleckenstein nielsen | last post: by
6 posts views Thread by Steve Ricketts | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.