{"record":{"id":"a59f86f557f346cf","repo":"fluent/fluentd","slug":"both-send-keepalive-packet-and-deny-keepalive","errorCode":null,"errorMessage":"both 'send_keepalive_packet' and 'deny_keepalive' cannot be set to true","messagePattern":"both 'send_keepalive_packet' and 'deny_keepalive' cannot be set to true","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/plugin/in_forward.rb","lineNumber":165,"sourceCode":"            rescue SocketError\n              raise Fluent::ConfigError, \"host '#{client.host}' cannot be resolved\"\n            end\n          end\n          source_addr = begin\n                          IPAddr.new(source || client.network)\n                        rescue ArgumentError\n                          raise Fluent::ConfigError, \"network '#{client.network}' address format is invalid\"\n                        end\n          @nodes.push({\n              address: source_addr,\n              shared_key: (client.shared_key || @security.shared_key),\n              users: client.users\n            })\n        end\n      end\n\n      if @send_keepalive_packet && @deny_keepalive\n        raise Fluent::ConfigError, \"both 'send_keepalive_packet' and 'deny_keepalive' cannot be set to true\"\n      end\n    end\n\n    def multi_workers_ready?\n      true\n    end\n\n    HEARTBEAT_UDP_PAYLOAD = \"\\0\"\n\n    def start\n      super\n\n      shared_socket = system_config.workers > 1\n\n      log.info \"listening port\", port: @port, bind: @bind\n      server_create_connection(\n        :in_forward_server, @port,\n        bind: @bind,","sourceCodeStart":147,"sourceCodeEnd":183,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/plugin/in_forward.rb#L147-L183","documentation":"Error \"both 'send_keepalive_packet' and 'deny_keepalive' cannot be set to true\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/plugin/in_forward.rb:165 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dd45c6e18dc7be33b5e5a0f0767bf46307ff5626","analyzedAt":"2026-08-21T16:22:07.332Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}