Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

tollgate-clientd: rapid-repay drain when /usage cannot resolve the client identity

Aperta
#422 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
49/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
payments

Direzione di ricerca

Start by reading the clientd polling and payment flow, then run tests/cloud-lab/run-clientd-scenarios.sh and inspect the S3 attempts. The proposal does not specify the final threshold, so clarify that before implementing. Done means repeated -1/-1 usage responses after a successful payment stop further payments and surface a clear error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Found by the clientd scenario battery (tests/cloud-lab/run-clientd-scenarios.sh, S3 attempts).

What happened: when the daemon polls GET :2121/usage from a source IP the router cannot map to a MAC (not in dhcp.leases / ARP view), the endpoint answers -1/-1. clientd interprets that as "no session" and pays again at throttle pace — indefinitely. Observed: ~20 payments of 1 sat in ~95 seconds (allotment climbed to 420000 ms); the wallet was on track to drain completely.

Why it matters: any client-identity mismatch (NAT rebinding, interface change, stale ARP) turns into silent repeated payment. The payments all succeed — only the usage view is blind — so nothing errors out.

Proposal: circuit breaker — after N consecutive -1/-1 polls that immediately follow a successful payment (e.g. 3), stop paying and surface a clear error instead of continuing. Optionally --max-unacked-payments.

Lingua principale
Go
Stelle
12
Fork
14
Merge medio
1g 6h
PR unite (30g)
217

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenTollGate/tollgate-module-basic-go

Tutte le issue di OpenTollGate/tollgate-module-basic-go

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.