[Mono-list] Exception on telnet

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Tue May 12 12:31:28 EDT 2009


On Tue, 2009-05-12 at 11:49 +0200, Peter Hagen wrote:
> Hi
> 
> I was trying to debug my setup in which I did a telnet to a mod-mono
> environment on my apache server (2.2). As far as I know, this should
> not be a problem. Here is what i did:
> 
> > telnet 192.168.0.8 83
> GET / HTTP/1.0
> 
> As result I get a 500 Internal Server Error and in my apache error
> logs, this is printed: 
> 
> System.ArgumentOutOfRangeException: Abnormal string size 1869098752
> Parameter name: size
>   at Mono.WebServer.ModMonoRequest.ReadString () [0x00000] 
>   at Mono.WebServer.ModMonoRequest.GetInitialData () [0x00000] 
>   at Mono.WebServer.ModMonoRequest..ctor (System.Net.Sockets.Socket client) [0x00000] 
>   at Mono.WebServer.RequestReader..ctor (System.Net.Sockets.Socket client) [0x00000] 
>   at Mono.WebServer.ModMonoWorker.InnerRun (System.Object state) [0x00000] 
>   at Mono.WebServer.ModMonoWorker.Run (System.Object state) [0x00000] 
> [Tue May 12 11:44:08 2009] [error] (70014)End of file found: read_data failed
> [Tue May 12 11:44:08 2009] [error] Command stream corrupted, last command was -1

This is not a bug. Probably apache passed along some telnet control
characters.

-Gonzalo




More information about the Mono-list mailing list