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

grompf grompf at sublimeintervention.com
Wed Jun 9 16:29:31 EDT 2004

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 

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...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ModMonoRequest.patch
Type: application/octet-stream
Size: 2969 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040609/3d02fe04/attachment.obj 

More information about the Mono-devel-list mailing list