Re: HTTP handlers/Modules vs ISAPI dlls

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Scott Allen (bitmask_at_[nospam)
Date: 08/23/04


Date: Sun, 22 Aug 2004 21:47:29 -0400

Speaking *generally*:

I can write an ISAPI filter in C++ that is more performant than a C#
module implementing the same functionality. This would be because the
filter is written in C++.

Also speaking generally:

The C++ version would take 4x as long, would have 4x the number of
bugs, and have 4x the number of security holes. Just memory management
alone in a non-trivial ISAPI filer required very careful attention to
detail.

A handler written in managed code is the answer to an ISAPI dll. There
are so many benefits to managed code I'd never consider doing it in
C++ again.

--
Scott
http://www.OdeToCode.com
On Sun, 22 Aug 2004 20:46:21 -0400, "Norton" <thenortonz@hotmail.com>
wrote:
>I had a person tell me the other day that a person would not be able to beat 
>the efficiency of an ISAPI dll, especially by using handlers/modules. Of 
>course, they could only say the reason was that it is written in C++, which 
>should have nothing to do with it.
>
>But, in general, can you write a handler that will handle just as many 
>connections as an ISAPI dll? Isn't a handler a managed code answer to the 
>ISAPI dll solution?
>
>Thanks.
>
>Norton. 
>


Relevant Pages

  • Re: ISAPI vs. HTTPModule
    ... which parses the request and dispatches it to IIS in usermode. ... extension of the request is determined, and then sent to its handler. ... > ISAPI will not be able to access any .Net intrinsics/events. ...
    (microsoft.public.inetserver.iis)
  • Re: .NET code for creating IIS mapping
    ... the IIS level, I dont know if you can do that from ASP.NET code. ... > This handler works if the user request to some.txt file inside virtual dir> redirected to aspnet_isapi.dll. ... But> requests to *.txt files by default dose not redirected to any ISAPI> extension ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS 7.0 Handler Mapping permission: Write
    ... After we opened up the handler ... permissions" so that one could then use the accessPolicy to control ... "EXE and DLL require Execute Permissions". ... goofy like set ISAPI to require "no" permissions ...
    (microsoft.public.inetserver.iis.security)
  • Re: Non-Existent folder urlrewrite without changing ISAPI
    ... I thought there was a way to do this without changing the ISAPI ... handler. ... I cringe at the thought:) ... functionality to the Authenticate_Request with no Global.asax? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HTTP handlers/Modules vs ISAPI dlls
    ... Specifically 2 paragraph above the conclusion, they say the same thing as "a ... We shouldn't be surprised that unmanged C++ is faster than any managed code. ... > the efficiency of an ISAPI dll, ... Isn't a handler a managed code answer to the ...
    (microsoft.public.dotnet.framework.aspnet)