[Mono-list] Web: Apache v/s IIS

Gaurav Vaish gvaish@iitk.ac.in
Sat, 22 Dec 2001 21:14:02 +0530


----- Original Message -----
From: "Patrik Torstensson" <totte@labs2.com>
To: "Bob Smith" <bob@thestuff.net>; "Gaurav Vaish" <gvaish@iitk.ac.in>
Cc: <mono-list@ximian.com>
Sent: Saturday, December 22, 2001 18:47
Subject: SV: [Mono-list] Web: Apache v/s IIS


: Therefore I implemeted a new interface that then the correct request provider can implement, and I think the HttpRuntime should be
abstract and be implemented for different web servers. The webservers ís then responsible for starting the HttpRuntime and post
the request via the implementation of the request handler. I can post the code soon for my server (just need to flush out the bugs)
and I think a lot of that code could be reused for Mono.
>>>
    I am not sure of making HttpRuntime abstact since in my opinion, we should not tamper with the API - though we may add another
abstact class and appreciate the developers to use that instead of HttpRuntime (lest we find time to debate over this issue).
    But, yes, your code may prove to be of great help to us.

:
: The named pipe implementation in IIS is in unmanaged code and the unmanaged code hostes a AppDomain that starts the HttpRuntime.
And I think this could be a good idea for the Mono implementation also due to that the Web framework uses threads (a thread pool
that is implemented in the unmanaged code using IOCP) and for example Apache is not. With the abstraction with a named pipe or
TCP/IP layer we don't need to take that into considiration for each implementation plus we can implement things like webgardens and
other cool functionality.
>>>
    Can you please enlight more on this since I have not looked into the IIS very closely. Not sure much about starting the
HttpRuntime, but yes, definitely, there's a lot of unmanaged code that has gone into the runtime.

    Anyway, Bob's idea of mod_mono for Apache would be good thing - noting that it may not only be of great help to Mono but also to
others who wish to interface using the .NET aware languages.



Cheers,
Gaurav Vaish
----------------------------

:
: - Patrik
:
: -----Ursprungligt meddelande-----
: Från: Bob Smith [mailto:bob@thestuff.net]
: Skickat: fr 2001-12-21 18:48
: Till: Gaurav Vaish
: Kopia: mono-list@ximian.com
: Ämne: Re: [Mono-list] Web: Apache v/s IIS
:
:
:
: What I was thinking of doing is adding a mod_mono into apache which would
: allow apache modules to be written with CIL. Then, write a module that
: passes the required information to HttpRuntime. The other way would be to
: do it the way Microsoft did it. Have a totally seperate process for the
: HttpRuntime and send requests at it via named pipes.
:
: Bob
:
: On Fri, 21 Dec 2001, Gaurav Vaish wrote:
:
: > Hello,
: >     Some variables in System.Web.HttpRuntime (App*, Clr*)  are highly Windows/IIS specific. I can get the required information
from
: > aspnet_isapi.dll etc, but I am totally stuck at from where to load in case of Apache - and that too when I have two cases:
windows
: > and linux.
: >
: >     Any clues?
: >
: >     [One example of what I actually need is System.Web.Utils.ApacheVersionInfo as against <namespace>.IISVersionInfo]
: >
: >
: > Cheers,
: > Gaurav Vaish
: > ----------------------------
: >
: >
: > _______________________________________________
: > Mono-list maillist  -  Mono-list@ximian.com
: > http://lists.ximian.com/mailman/listinfo/mono-list
: >
:
:
: _______________________________________________
: Mono-list maillist  -  Mono-list@ximian.com
: http://lists.ximian.com/mailman/listinfo/mono-list
: