Does a WCF service with basicHttpBinding create a new connection for each request?

Posted by Phil Wright on Stack Overflow See other posts from Stack Overflow or by Phil Wright
Published on 2010-12-24T08:52:45Z Indexed on 2010/12/24 8:53 UTC
Read the original article Hit count: 297

Filed under:
|
|

I have a Silverlight client calling a WCF Service on an IIS web server. It uses the default basicHttpBinding setting for the calls. My client code has the usual Visual Studio generated proxy that is generated when using the 'Update Service Reference' menu option.

Does every call to the service using that proxy use the same connection? Or does it create a connection each time a call is made and then close it down once the reply is received? As the client is actually making a SOAP call over HTTP I just assumed that every service request had a new connection created but I want to check if that is the case?

(I need to know because if it creates a new connection each time then each request could end up at a different server because there are several servers being load balanced. It is uses a single connection for the duration of the proxy then I can assume they all end up at the same machine and so it would cache state.)

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about wcf