use gearmad http, keep-alive it's unwork

Bug #1580976 reported by jiaofuyou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman
New
Undecided
Unassigned

Bug Description

use gearmad http:

http/1.1 or with header: "Connection: Keep-Alive"

after job finish complete , connection is by closed!

log below:

   INFO 2016-05-12 11:10:21.000000 [ main ] Accepted connection from 172.16.18.171:14817
   INFO 2016-05-12 11:10:21.000000 [ 1 ] HTTP connection made
   INFO 2016-05-12 11:10:21.000000 [ 1 ] Receiving HTTP response
   INFO 2016-05-12 11:10:21.000000 [ 1 ] Receiving HTTP response(finished)
 NOTICE 2016-05-12 11:10:21.000000 [ proc ] accepted,get_user,-,0 -> libgearman-server/server.cc:328
   INFO 2016-05-12 11:10:21.000000 [ 1 ] Peer connection has called close()
   INFO 2016-05-12 11:10:21.000000 [ 1 ] Disconnected 172.16.18.171:14817

so, apache/ab -k is also is failed!

source: http/protocol.cc :

lineno: 414

    if (keep_alive() == false)
    {
      gearman_io_set_option(&connection->con, GEARMAND_CON_CLOSE_AFTER_FLUSH, true);
    }

It's unwork.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.