зеркало из https://github.com/mono/xsp.git
2008-07-14 Marek Habersack <mhabersack@novell.com>
* src/Mono.WebServer.Apache/ModMonoRequest.cs: fill the buffer when reading the client block. Fixes bug #408723 svn path=/trunk/xsp/; revision=107867
This commit is contained in:
Родитель
af2a579d92
Коммит
ba81a3d2ac
|
@ -1,3 +1,8 @@
|
||||||
|
2008-07-14 Marek Habersack <mhabersack@novell.com>
|
||||||
|
|
||||||
|
* src/Mono.WebServer.Apache/ModMonoRequest.cs: fill the buffer
|
||||||
|
when reading the client block. Fixes bug #408723
|
||||||
|
|
||||||
2008-07-11 Marek Habersack <mhabersack@novell.com>
|
2008-07-11 Marek Habersack <mhabersack@novell.com>
|
||||||
|
|
||||||
* src/Mono.WebServer.Apache/Worker.cs: RequestReader is created
|
* src/Mono.WebServer.Apache/Worker.cs: RequestReader is created
|
||||||
|
|
|
@ -508,6 +508,7 @@ namespace Mono.WebServer
|
||||||
writer.Write (size);
|
writer.Write (size);
|
||||||
Send ();
|
Send ();
|
||||||
|
|
||||||
|
FillBuffer (4);
|
||||||
int i = reader.ReadInt32 ();
|
int i = reader.ReadInt32 ();
|
||||||
if (i == -1)
|
if (i == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -515,6 +516,7 @@ namespace Mono.WebServer
|
||||||
if (i > size)
|
if (i > size)
|
||||||
throw new Exception ("Houston...");
|
throw new Exception ("Houston...");
|
||||||
|
|
||||||
|
FillBuffer (i);
|
||||||
return reader.Read (bytes, position, i);
|
return reader.Read (bytes, position, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче