HTTP Content-Length: 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman |
New
|
Undecided
|
Unassigned |
Bug Description
Calling job with curl. Get no content-length set on response. From php and nodejs the job works correctly. I've dumped the return data and it is correct.
curl --data '{"sessionId"
> POST /getUserData_client HTTP/1.1
> User-Agent: curl/7.37.0
> Host: ec2-50-
> Accept: */*
> Content-Length: 42
> Content-Type: application/
>
* upload completely sent off: 42 out of 42 bytes
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< X-Gearman-
< X-Gearman-Command: GEARMAN_
< Content-Length: 0
< Server: Gearman/1.0.6
<
* Excess found in a non pipelined read: excess = 1133 url = /getUserData_client (zero-length body)
* Closing connection 0
I believe if the content-lenght should be set to 1133 as it looks like curl is complaining about the excess found.
I don't see any where in php to set content-length or any other options for http other than port.
Use the latest version(1.1.12), and patch it with the patch file posted in /bugs.launchpad .net/gearmand/ +bug/1352411/ comments/ 4
https:/
then it may solve your problem.