gearman with http, bad request line , gearmand die
Bug #1348865 reported by
jiaofuyou
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman |
New
|
Undecided
|
Unassigned |
Bug Description
gearmand -L 127.0.0.1 --http-port 8080 -r http
telnet 127.0.0.1 8080
input any content, like "aaa"
gearmand log, dont stop have:
bad request line aaa
to memory out
Related branches
lp:~1-infe-w/gearmand/1.0
Ready for review
for merging
into
lp:gearmand
- Tangent Trunk: Pending requested
-
Diff: 82 lines (+22/-5) (has conflicts)2 files modifiedlibgearman-server/plugins/protocol/http/protocol.cc (+14/-4)
libgearman-server/plugins/queue/libmemcached/queue.cc (+8/-1)
lp:~1-infe-w/gearmand/gearmand
Ready for review
for merging
into
lp:gearmand
- Tangent Trunk: Pending requested
-
Diff: 84 lines (+16/-8)3 files modifieddocs/Makefile (+3/-0)
libgearman-server/plugins/protocol/http/protocol.cc (+8/-6)
libgearman-server/plugins/queue/libmemcached/queue.cc (+5/-2)
You can open file libgearman- server/ plugins/ protocol/ http/protocol. cc , find 'bad request line:' and 'bad method:', then chang 'GEARMAND_SUCCESS' to 'GEARMAND_ INVALID_ PACKET' after them. This way is quick for this bug.
You can also use my patch file here, but the patch file contains other patches for bug fixes and/or better support of SSL connection, planed job and HTTP protocol. Read these links below for details: /bugs.launchpad .net/gearmand/ +bug/1338861 /bugs.launchpad .net/gearmand/ +bug/1352411 /answers. launchpad. net/gearmand/ +question/ 252097
https:/
https:/
https:/