WebService: How to close a connection after a completed request

M

Manoj Kumar

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
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Are you accesing to a DB from the WS ?

Do you open/close the connection each time?


cheers,
 
M

Manoj Kumar

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
 
I

Ignacio Machin \( .NET/ C# MVP \)

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 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top