[Mono-devel-list] mod_mono on osx / big endian systems.
grompf
grompf at sublimeintervention.com
Fri Jun 11 11:14:52 EDT 2004
I spoke too soon;
the issue is that the size is being swapped before sending it down
the socket to mod-mono-server; but its NOT being swapped before sending
the string; meaning that mod_mono is blocking in there sending random
memory.
Attached is a patch to fix this;
-kangaroo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mod_mono.c.patch
Type: application/octet-stream
Size: 411 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040611/1a7b1b87/attachment.obj
-------------- next part --------------
On 11-Jun-04, at 11:04 AM, grompf wrote:
> Alright,
>
> Now that this patch is in place; something very odd is going on;
> turning on debugging in mod_mono; it prints:
>
> [Fri Jun 11 10:59:34 2004] [warn] try_connect: 6
> [Fri Jun 11 10:59:34 2004] [warn] After setup_socket
> [Fri Jun 11 10:59:34 2004] [warn] Writing method: GET
> [Fri Jun 11 10:59:34 2004] [warn] len before swap 3
> [Fri Jun 11 10:59:34 2004] [warn] len after swap 50331648
>
> showing that the swap is working;
>
> In ModMonoWorker.cs I added some debugging printing to the
> ReadString() method; and it shows:
>
> ReadString():size=3
> ReadString():s=GET
> ReadString():size=0
> ReadString():s=
> ReadString():size=1701064448
>
> Which then tries to allocate and read 1.7 gigs of data.
>
> I'm still tracking down where its happening...
>
> -kangaroo
>>
>> I'll fix this in mod_mono.c
>>
>> -Gonzalo
>>
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
> !DSPAM:40c9c9a0165152593319830!
>
More information about the Mono-devel-list
mailing list