[Mono-devel-list] mod_mono on osx / big endian systems.

Gonzalo Paniagua Javier gonzalo at ximian.com
Wed Jun 9 21:19:08 EDT 2004


El mié, 09-06-2004 a las 22:29, grompf escribió:
> I've been debugging the usablilty of mod_mono on OSX with Apples Apache 
> 1.3.  Out of the box this doesn't work; when making a request 
> mod_mono_server uses 100% cpu and locks.  I tracked the problem down to 
> endianess:
> 
> BinaryReader.ReadInt32 assumes little endian on the stream; which for 
> most of .Net is fine; however since mod_mono is native, and writing the 
> in to the stream; this is wrong.  Meaning that ReadString() in 
> ModMonoRequest.cs is getting some insane size for the string to read.  
> This patch solved the problem locally; but probably isn't ideal.
> 
> This patch implements its own ReadInt32 which is different depending on 
> wether BIGENDIAN is set or not...

I'll fix this in mod_mono.c

-Gonzalo





More information about the Mono-devel-list mailing list