[Mono-dev] mod_mono on Windows

Alexandre Rocha Lima e Marcondes alexandremarcondes at psl-pr.softwarelivre.org
Mon Dec 19 08:32:12 EST 2005


Hello Gonzalo,

    As we talked earlier, I'm sending you the patches for mod_mono on
windows. On patch mod_mono-win32-3,  const int MAXARGS = 21;

    should work using #define , but on Windows, as const int it does not
work, so for now it is hardcoded. I think the best should be testing
with define.

    I have discussed it with Algel Marin (the patch creator) and there
should be no problem on using define. There are a few issues we should
discuss also:

    * If the autohosting is used, mod-mono-server does not identify
paths as applications (maybe we didn't figure out how to make it work)

    * We need to determine also a good LISTEN_PORT value

    * With some releases you can configure the directives with spaces
and backslashes and then in the next one the behavior changes, the
directive that accepted spaces, makes mono fail and the one that gave
problems starts accepting them, for example on 1.1.10
MonoDocumentRootDir does not work if you configure it with a path that
has spaces, mono gives exceptions until you use the old 8.3 format for
the path. On 1.1.9 MonoExecutablePath gave similar problems, but in
1.1.10 it works. (on a first impression I would say it could be some
platform path mapping glitch on the base classlib)

    * The build process on windows depends on cygwin (win32 glib builds)

    * fork_mod_mono_server does two different tasks: first it prepares
the arguments to launch mod-mono-server.exe, then It setups the
environment needed for the fork and forks the process. The arguments
needed for win32 are just the same needed for linux, just the fork stuff
changes. To ease maintenance the args should be setup in other function
and #ifdef WIN32 should be used to declare the right function. The patch
mod_mono-win32-3 handles fork_mod_mono on windows ... it should be
rewritten as stated earlier.

    The patches were designed in a manner to keed mod_mono the closest
from original. There could be some corrections in order to merge it with
the actual code and keed it portable. If there is no problem, me and
Angel Marin could do the refactoring as stated on this mail and I could
commit it later.

--
Regards,
  Alexandre Rocha Lima e Marcondes
   P4 Tecnologia e Desenvolvimento Humano 

alexandre at p4tecnologia.com
alexandre at psl-pr.softwarelivre.org
arlm at users.sourceforge.net 
www.p4tecnologia.com
alexandre.p4tecnologia.com 
Projetos:
MonoBrasil MonoBASIC
ACBr 
Freedom ERP 





To validate this message's signature follow the instructions: http://www.cacert.org/index.php?id=3&lang=en_US
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051219/8f865976/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4611 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051219/8f865976/attachment.bin 


More information about the Mono-devel-list mailing list