Fixed reading chunked input data

When retrieving data block by block, use 8_192 instead of 1_024 (since 1_024 is too small most of the time)
This commit is contained in:
Jocelyn Fiat
2012-12-18 23:40:26 +01:00
parent 0d87c7939a
commit ffe87ccbe9
4 changed files with 105 additions and 46 deletions

View File

@@ -205,7 +205,7 @@ feature -- Retrieve content from WGI_INPUT_STREAM
l_input := req.input
if req.is_chunked_input then
from
n := 1_024
n := 8_192
create Result.make (n)
until
n = 0

View File

@@ -21,7 +21,7 @@ feature {NONE} -- Implementation
t: STRING
do
from
n := 1_024
n := 8_192
create Result.make (n)
until
n = 0

View File

@@ -207,7 +207,7 @@ feature -- Access: Input
l_input := input
if is_chunked_input then
from
n := 1_024
n := 8_192
until
n = 0
loop