Disable http keep-alive on ASMX webservice

3.8k Views Asked by At

I have a .net webservice (old-school, not WCF) running on a website on IIS7.

I need to disable http keep-alive for the webservice, but not for the rest of the site.

Is it possible to override what IIS is doing here, just for that service?

I cannot change client code, which is calling in with http 1.1.

1

There are 1 best solutions below

4
On BEST ANSWER

See this link

<configuration>
   <system.webServer>
      <httpProtocol allowKeepAlive="false" />
   </system.webServer>
</configuration>