• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

topfreegames / pitaya
58%
master: 69%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Repo Added 10 Apr 2018 08:49PM UTC
Files 91
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 0.1.0
  • 0.2.2
  • 0.3.0
  • 0.4.1
  • 0.5.0
  • 0.5.1
  • 0.5.3
  • 0.7.0
  • 0.7.1
  • 0.7.2
  • 0.7.3
  • 0.7.4
  • add_metrics
  • add_metrics_v3
  • backport_421
  • backport_lame_duck
  • bugfix/SD-SIGINT
  • bugfix/client-IncomingMsgChan
  • bugfix/concurrency-chan-close-on-client
  • bugfix/kick
  • bugfix/readme
  • bugfix/update-submodule
  • bugfix/validator
  • cursor/pedra-madeira-coleta-manual-619f
  • dependabot/go_modules/github.com/nats-io/nats-server/v2-2.12.6
  • dependabot/go_modules/go.opentelemetry.io/otel/sdk-1.43.0
  • dependabot/go_modules/google.golang.org/grpc-1.79.3
  • dependabot/go_modules/xk6-pitaya/go.opentelemetry.io/otel-1.41.0
  • dependabot/go_modules/xk6-pitaya/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp-1.43.0
  • dependabot/go_modules/xk6-pitaya/go.opentelemetry.io/otel/sdk-1.40.0
  • dependabot/go_modules/xk6-pitaya/go.opentelemetry.io/otel/sdk-1.43.0
  • feat/add-isready-function
  • feat/add-isready-function-v2
  • feat/channel-capacity-metric-port
  • feat/read_bigger_messages
  • feat/websocket-pitaya-compression
  • feature/acceptor-rate-limit
  • feature/add-healthchecks
  • feature/add-nats-connection-timeout
  • feature/auto-doc
  • feature/autodoc-flag
  • feature/close-sessions-on-shutdown
  • feature/compression
  • feature/context
  • feature/ctx-routing-func
  • feature/custom-metrics
  • feature/custom_handshake
  • feature/default-logger-on-ctx
  • feature/descriptors
  • feature/docs
  • feature/elasticapm
  • feature/etcd_auth
  • feature/fix-report-rpc-error
  • feature/generic-worker
  • feature/getallservers
  • feature/golang-protobuf
  • feature/grpc-out-cluster
  • feature/heartbeat_log
  • feature/improve-logging
  • feature/lazy_grpc_connections
  • feature/log-handler-message
  • feature/metrics
  • feature/nats_die_chan
  • feature/nats_reconnect
  • feature/new-server-metadata
  • feature/pitaya-client-message-id
  • feature/print-calls
  • feature/proxy-protocol
  • feature/rate-limiting
  • feature/reduce-connection-close-logs
  • feature/report-code
  • feature/rpc-worker
  • feature/struct-validation-pipeline
  • feature/sys-metrics
  • feature/tags-from-ctx
  • feature/tls-client
  • feature/v2-apply-master-changes
  • feature/worker-namespace
  • fix-service-discovery-startup-time
  • fix/agent-close-panic
  • fix/die-chan
  • fix/drain-nats-conn
  • fix/error-code-lost-in-compression
  • fix/error-code-lost-in-compression-v2
  • fix/etcd-revoke-lease
  • fix/etcd-sync-log-level
  • fix/grpc_leak
  • fix/nats-reconnection
  • fix/nats-shutdown
  • fix/natsSubLeak
  • fix/ordered-modules
  • fix/pitaya_client_interface
  • fix/port-error-propagation
  • fix/prometheus
  • fix/protos
  • fix/route-err
  • fix/rpctracing
  • fix/sd_concurrency
  • fix/service-discovery
  • fix/shutdown
  • fix/shutdownMsg
  • fix/statsd-histogram
  • fix/submodule
  • fix/support-loopback-rpcs
  • fix/test
  • fix/tests
  • fix/timing-report
  • fix/unique-session-kick
  • fix/unique_session_race_condition
  • fix/version-unification
  • fix/windows-sys-kill
  • fix/xk6-pitaya
  • grpc
  • guard_empty_msg
  • guard_empty_msg-main
  • hostname
  • improve_logs
  • improvement/logs
  • kcp-acceptor
  • lame_duck_reconnection
  • log/heartbeat_error
  • log_imp_v2
  • logger-docs
  • main
  • master
  • metrics-docs
  • nested-configs
  • patch-5
  • refactor/etcd-Bootstrap
  • refactor/kick
  • refactor/kickch
  • refactor/pipeline
  • refactor_agent
  • refactor_connection
  • remove-error-log-on-client-disconnect
  • rpc_protobuf
  • server-id-getter
  • v0.10.2
  • v0.11.3
  • v0.12.0
  • v0.12.2
  • v0.12.4
  • v0.12.5
  • v0.13.0
  • v0.13.1
  • v0.13.2
  • v0.13.3
  • v0.13.4
  • v0.13.5
  • v0.13.6
  • v0.14.0
  • v0.14.2
  • v0.14.3
  • v0.14.5
  • v0.14.6
  • v0.14.7
  • v0.15.0
  • v0.15.3
  • v0.15.4
  • v0.15.5
  • v0.15.5-logsv1
  • v0.15.5-logsv2
  • v0.15.6-alpha
  • v0.16.0
  • v0.16.1
  • v0.17.0
  • v0.2.0
  • v0.2.1
  • v0.7.6
  • v0.7.7
  • v0.8.0
  • v0.9.0
  • v0.9.1
  • v0.9.4
  • v0.9.5
  • v1
  • v1.0.0
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.1.4
  • v1.1.5
  • v2
  • v3_ports

09 Jun 2026 04:03PM UTC coverage: 58.456% (-0.3%) from 58.772%
27219158685

push

github

web-flow
fix(cluster): guard against nil Msg in NATS rpc server + bump nats.go to v1.52.0 (#503)

* fix(cluster): guard against nil Msg in NATS rpc server handleMessages

A payload delivered to a server's RPC subject that unmarshals into a
protos.Request without error but with a nil Msg caused handleMessages to
nil-panic at `req.Msg.Reply = msg.Reply`, crashing the whole process
(the goroutine has no recover). A well-formed pitaya RPC always sets Msg
(see buildRequest), so a nil Msg means the payload is malformed at the
source: an empty publish, a non-Request proto, or a schema-skewed sender
such as an older libpitaya client built against a different request.proto.

Drop such messages and log the surviving Request fields, the reply inbox,
and a capped hex prefix of the payload so the sender/route can be traced.

* chore(deps): bump nats.go to v1.52.0 (latest)

Updates github.com/nats-io/nats.go v1.47.0 => v1.52.0, with transitive
golang.org/x/* deps updated to match. The module already targets go 1.25,
so no go directive change is needed.

1 of 13 new or added lines in 1 file covered. (7.69%)

222 existing lines in 6 files now uncovered.

5105 of 8733 relevant lines covered (58.46%)

0.64 hits per line

Relevant lines Covered
Build:
Build:
8733 RELEVANT LINES 5105 COVERED LINES
0.64 HITS PER LINE
Source Files on master
  • Tree
  • List 91
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
27219158685 main fix(cluster): guard against nil Msg in NATS rpc server + bump nats.go to v1.52.0 (#503) * fix(cluster): guard against nil Msg in NATS rpc server handleMessages A payload delivered to a server's RPC subject that unmarshals into a protos.Request w... push 09 Jun 2026 04:06PM UTC web-flow github
58.46
27218106399 guard_empty_msg-main chore(deps): bump nats.go to v1.52.0 (latest) Updates github.com/nats-io/nats.go v1.47.0 => v1.52.0, with transitive golang.org/x/* deps updated to match. The module already targets go 1.25, so no go directive change is needed. Pull #503 09 Jun 2026 04:01PM UTC rsafonseca github
58.46
27218689096 v2 fix(cluster): guard against nil Msg in NATS rpc server + bump nats.go to v1.52.0 (#502) * fix(cluster): guard against nil Msg in NATS rpc server handleMessages A payload delivered to a server's RPC subject that unmarshals into a protos.Request w... push 09 Jun 2026 03:58PM UTC web-flow github
61.17
27218380672 guard_empty_msg ci: bump Go to 1.25 to match go.mod directive The nats.go v1.52.0 bump raised the module go directive to 1.25.0, but CI installed Go 1.24. The go.mod requirement then triggered a toolchain switch during the coverage build, which surfaced as `go: ... Pull #502 09 Jun 2026 03:52PM UTC rsafonseca github
61.2
27216433365 v2 feat(metrics): instrument handler/RPC channel buffers and worker pools (#500) Several buffered channels and goroutine pools that sit on the hot path had no instrumentation, so there was no way to tell from metrics when a server was hitting its bu... push 09 Jun 2026 03:21PM UTC web-flow github
61.47
27143603019 add_metrics_v3 feat(metrics): instrument handler/RPC channel buffers and worker pools Several buffered channels and goroutine pools that sit on the hot path had no instrumentation, so there was no way to tell from metrics when a server was hitting its buffer (B... Pull #501 08 Jun 2026 02:13PM UTC rsafonseca github
58.54
27141435631 add_metrics feat(metrics): instrument handler/RPC channel buffers and worker pools Several buffered channels and goroutine pools that sit on the hot path had no instrumentation, so there was no way to tell from metrics when a server was hitting its buffer (B... Pull #500 08 Jun 2026 01:52PM UTC rsafonseca github
61.26
25187910487 main fix(agent): capture error code before packetEncodeMessage mutates payload (#495) * fix(agent): capture error code before packetEncodeMessage mutates payload * fix(ci): setup ci tools --------- Co-authored-by: Gustavo Murayama <gustavo.murayama... push 30 Apr 2026 08:35PM UTC web-flow github
58.77
25187905565 v2 fix(agent): capture error code before packetEncodeMessage mutates payload (#494) * fix(agent): capture error code before packetEncodeMessage mutates payload * fix(ci): setup-ci tools --------- Co-authored-by: Gustavo Murayama <gustavo.murayama... push 30 Apr 2026 08:35PM UTC web-flow github
61.7
25184045911 fix/error-code-lost-in-compression-v2 fix(ci): setup-ci tools Pull #494 30 Apr 2026 07:05PM UTC gmurayama github
61.49
See All Builds (1102)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc