-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
5.0
-
generic
-
generic
Name: vpR10197 Date: 05/21/2004
--------------------------------------
Test : http/HttpStreaming/Chunked/chunked002
VM : ClientVM, ServerVM
Mode : all
Platform : all
OS : all
JDK : since tiger-b50
----------------------------------------
The test sets chunked streaming mode, sends to the Http server specified
amount of bytes and expects the server to receive the same amount.
It works with its own Http server which implements POST request method.
The "3.6.1 Chunked Transfer Coding" section of RFC2616 says:
"The chunked encoding is ended by any chunk whose size is
zero, followed by the trailer, which is terminated by an empty line."
Data reading on the server side is implemeted as it is recommended by
the "19.4.6 Introduction of Transfer-Encoding" section of RFC2616.
But no zero-size chunk is received during waiting time that is 1 min.
Note this time is specified by command line parameters and hardcoded into
launching script(run.sh).
To reproduce the failure:
cd /net/jano.sfbay/export/disk20/GammaBase/Bugs/<this bug number>
sh run.sh $JAVA_HOME [-g] [JAVA_OPTS]
where
-g - run test with java_g binaries
Here is an example of test's output:
Settings:
totalBytes = 12
bufferSize = 10
waitTime = 1
HTTP-client>Starting default Http-server
waiting server to be start
sending 12 bytes
Server started
HTTP version: HTTP/1.1
User-Agent: Java/1.5.0-beta2
Host: localhost:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-type: application/x-www-form-urlencoded
Transfer-Encoding: chunked
receiving data
data = 0123456
chunk size = 7
data = 78901
chunk size = 5
***ERR***> WaitTime is expired.
Server was not correctly finished.
TEST FAILED
======================================================================
- relates to
-
JDK-5026745 Cannot flush output stream when writing to an HttpUrlConnection
- Resolved