Skip to content

buggregator/var-dumper-server

Repository files navigation

RoadRunner Var-Dumper Plugin

TCP server for receiving Symfony Var-Dumper dumps and forwarding to Jobs plugin for processing.

Overview

This plugin replaces the PHP-based Symfony Var-Dumper Server with a high-performance Go implementation that:

  • Accepts incoming dumps from Symfony Var-Dumper clients
  • Parses the protocol (base64-encoded serialized PHP data)
  • Pushes dumps to the Jobs plugin for asynchronous PHP processing
  • Handles multiple concurrent connections via goroutines

Configuration

var-dumper:
  addr: "127.0.0.1:9912"     # TCP listen address
  read_timeout: 60s           # Connection read timeout
  write_timeout: 10s          # Connection write timeout
  max_message_size: 10485760  # 10MB max dump size

  jobs:
    pipeline: "var-dumper"     # Target Jobs pipeline
    priority: 10              # Job priority
    delay: 0                  # Processing delay
    auto_ack: true            # Auto-acknowledge jobs

Jobs Payload

Each dump is pushed to Jobs with the following structure:

{
  "event": "DUMP_RECEIVED",
  "uuid": "unique-identifier",
  "client_id": 1,
  "remote_addr": "127.0.0.1:54321",
  "received_at": "2024-01-01T12:00:00Z",
  "payload": "base64-encoded-serialized-php-data",
  "context": {},
  "error": null
}

About

TCP server for receiving Symfony Var-Dumper dumps and forwarding to Jobs plugin for processing.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Languages