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

Jackson Harper jackson at ximian.com
Wed Jun 9 16:58:47 EDT 2004


This should be done at runtime, not compile time using
BinaryReader.IsLittleEndian unless we are going top have xsp run on
separate machines from mod_mono.

Jackson


On Wed, 2004-06-09 at 13:29, grompf wrote:
> 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...
> 
> -kangaroo




More information about the Mono-devel-list mailing list