WResources with Transfer-Encoding: chunked
Added by Trigve Siver almost 8 years ago
Hi,
I'm using WResources for a web service (SOAP) implementation. When I've got some POST request with "Transfer-Encoding: chunked" then Http::Request::in() in WResource: handleRequest() doesn't return anything.
It this know limitation or am I doing something wrong?
Here is log:
[2017-Jun-15 20:00:15.097615] 16784 - [debug] "wthttp/async: new connection (#1)"
[2017-Jun-15 20:00:15.098115] 16784 - [debug] "wthttp/async: 612: start()"
[2017-Jun-15 20:00:15.098115] 16784 - [debug] "wthttp/async: 612: startAsyncReadRequest"
[2017-Jun-15 20:00:15.098615] 16784 - [debug] "wthttp/async: 612 setting read timeout (ws: -1)"
[2017-Jun-15 20:00:15.099615] 16784 - [debug] "wthttp/async: 612: handleReadRequest(): The operation completed successfully"
[2017-Jun-15 20:00:15.099615] 16784 - [debug] "wthttp/async: 612 cancel read timeout"
[2017-Jun-15 20:00:15.100115] 16784 - [debug] "wthttp/async: 612incoming request: 53501 (avail= 174): POST /XXX HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: curl/7.54.0
Accept: */*
Content-Type: application/soap+xml
Transfer-Encoding: chunked
Expect: 100-continue
"
[2017-Jun-15 20:00:15.100115] 16784 - [debug] "wthttp/async: 612request: 200"
[2017-Jun-15 20:00:15.100615] 16784 - [debug] "CgiParser: queryString (len=0): "
[2017-Jun-15 20:00:17.321397] 16784 - [debug] "wthttp: WtReply::send(): 0"
[2017-Jun-15 20:00:17.321897] 16784 - [debug] "wthttp: avail now: 0"
[2017-Jun-15 20:00:17.321897] 16784 - [debug] "wthttp/async: 612 sending: 112(buffers: 2)"
[2017-Jun-15 20:00:17.322397] 16784 - [debug] "wthttp/async: 612: startAsyncWriteResponse"
[2017-Jun-15 20:00:17.322897] 16784 - [debug] "wthttp/async: 612 setting write timeout (ws: -1)"
[2017-Jun-15 20:00:17.323398] 16784 - [debug] "wthttp/async: 612: handleWriteResponse(): 112 ; The operation completed successfully"
[2017-Jun-15 20:00:17.323898] 16784 - [debug] "wthttp/async: 612 cancel write timeout"
[2017-Jun-15 20:00:17.324398] 16784 - [debug] "wthttp: writeDone() success:1, sent: 0"
[2017-Jun-15 20:00:17.324398] 16784 - [debug] "wthttp/async: 612: handleWriteResponse() 0 1"
[2017-Jun-15 20:00:17.328398] 16784 - [info] "WebRequest: took 2227.78ms"
[2017-Jun-15 20:00:17.328898] 16784 - [debug] "wthttp/async: 612: startAsyncReadRequest"
[2017-Jun-15 20:00:17.328898] 16784 - [debug] "wthttp/async: 612 setting read timeout (ws: -1)"
[2017-Jun-15 20:00:17.329398] 16784 - [debug] "wthttp/async: 612: handleReadRequest(): The operation completed successfully"
[2017-Jun-15 20:00:17.329898] 16784 - [debug] "wthttp/async: 612 cancel read timeout"
[2017-Jun-15 20:00:17.329898] 16784 - [debug] "wthttp/async: 612incoming request: 53501 (avail= 3283): cc7
<?xml version=""1.0"" encoding=""utf-8""?><s12:Envelope xmlns:s12='http://www.w3.org/2003/05/soap-envelope'>...
[2017-Jun-15 20:00:17.330398] 16784 - [debug] "wthttp/async: 612 sending: 218(buffers: 2)"
[2017-Jun-15 20:00:17.330898] 16784 - [debug] "wthttp/async: 612: startAsyncWriteResponse"
[2017-Jun-15 20:00:17.330898] 16784 - [debug] "wthttp/async: 612 setting write timeout (ws: -1)"
[2017-Jun-15 20:00:17.331899] 16784 - [debug] "wthttp/async: 612: handleWriteResponse(): 218 ; The operation completed successfully"
[2017-Jun-15 20:00:17.332399] 16784 - [debug] "wthttp/async: 612 cancel write timeout"
[2017-Jun-15 20:00:17.332399] 16784 - [debug] "wthttp/async: 612: handleWriteResponse() 0 1"
[2017-Jun-15 20:00:17.335399] 16784 - [debug] "wthttp/async: removed connection (#0)"
[2017-Jun-15 20:00:17.335899] 16784 - [debug] "wthttp: ~Reply"
[2017-Jun-15 20:00:17.335899] 16784 - [debug] "wthttp/async: 612: stop()"
[2017-Jun-15 20:00:17.336399] 16784 - [debug] "wthttp/async: 612: closing socket"
[2017-Jun-15 20:00:17.336899] 16784 - [debug] "wthttp: ~Reply"
[2017-Jun-15 20:00:17.336899] 16784 - [debug] "wthttp/async: ~Connection"
Thank You