* fix(redis): a command that gets no answer rejects after the configured timeout redis.commandTimeoutMs (default 2000) arms a per-command timer on the cluster client, so a command sent to a node that never replies, or queued while the cluster is not ready, rejects and the caller takes its error path. Blocking commands and duplicate() clients are left without it. * fix(broadcast): a failed pubsub publish or subscribe is logged, not left unhandled With command timeouts, a stalled publish now rejects; the fan-out is fire-and-forget, so the rejection is caught and logged. The sign-in relay test pins that /login/set still reaches a subscribed /login/wait when Redis never answers. * fix(permissions): a scan cache read that Redis fails to serve counts as a miss The scan then computes from the store, as the generation and per-check cache reads already do, instead of failing the permission check. * refactor(redis): isCommandTimeout names the rejection of a timed-out command Callers that issue a write can recognise the timeout and queue its undo on the same key. Also notes that a timed-out command is not withdrawn, restores the console spies in the timeout tests, and drops formatting churn in types.ts. * fix(metering): an increment whose buffering timed out is counted once On a timeout the write-through runs and the buffered copy is negated on the same keys, so if the timed-out increment lands later the next flush nets it out. incr and incrAux both do this. * fix(rate-limit): a concurrency slot whose acquire timed out is removed The ZREM goes to the same key behind the timed-out MULTI, so a slot that lands late does not stay held until the orphan window. * fix(uploads): leases whose take timed out are released The release goes to the same keys behind the timed-out take, so leases that land late do not count against the owner until their deadline. * fix(redis-lock): a claim that timed out is released if it lands The token-checked delete goes to the same key behind the timed-out SET NX, so a late claim does not hold the lock for its full TTL. * fix(broadcast): a rejected pubsub subscribe is retried with backoff Retries start at 1s and cap at 30s, and stop once the service shuts down. * refactor(redis): isCommandTimeout lives in its own module Stores, the rate limiter and the lock helper recognise a timed-out command without importing the client. * fix(credit-holds): a hold whose take or reserve timed out is released The release goes to the same key behind the timed-out script, so a hold that lands late does not shrink the spendable budget for its TTL. * fix(metering): a write-through answers without waiting on its undo The undo's place in the queue is fixed when it is sent, so the request no longer waits on it. When the undo itself times out, the warning says the increment may be counted once more or not at all. * fix(broadcast): a pubsub subscribe retry checks the client is still current A retry that fires after shutdown no longer subscribes the closed client. * feat(redis): after a timeout, commands fail fast until a probe gets a reply For redis.failFastMs (default 5000) after a command times out, other commands reject unsent with 'Redis unavailable', so a stall costs a request one timeout instead of one per call. After each interval one probe is sent; a reply, or the cluster becoming ready, ends it. Commands sent through sendAsUndo, blocking commands, CLUSTER commands and duplicate() clients are not held back. A pipeline is admitted or rejected as a whole. * fix(redis): undos of a timed-out command are sent while failing fast The metering negation, slot ZREM, upload and credit-hold releases and the lock's token-checked delete go through sendAsUndo, so they still queue behind the original that may land. A command rejected unsent is not a timeout, so it triggers no undo. * test(auth): the sign-in relay completes within one command timeout under a stall /login/set and /login/wait against a cluster whose node never answers now finish in about one timeout, since calls after the first fail fast. * style(redis): one-line comments, and types.ts keeps its existing formatting * fix(redis): releases are sent while failing fast and not waited on The lock release, concurrency-slot release, credit-hold release and upload-lease release and settle go through sendAsUndo, so resources taken before the breaker opened are freed rather than held for their TTL. They are sent without awaiting; later commands on the same key queue behind them. The KV and memory slot backends are still awaited. * fix(redis): a retried pipeline is timed again, and only replies end failing fast Pipeline commands whose error reply cleared their timer are re-armed when the pipeline resends them after MOVED, ASK or a closed connection, and the ASKING command it adds is always admitted. Only a reply, including an error reply, counts as an answer: a closed connection or an ended cluster no longer ends failing fast. * fix(rate-limit): window take-backs are sent while failing fast, and a release never rejects The ZREM or DECRBY that takes back a denied window charge goes through sendAsUndo without being awaited, and the request is still denied. A slot release that throws synchronously is logged, not rejected, and the release() doc says when it settles. * fix(broadcast): a publish failing fast warns once per stretch, not once per event Warnings for publishes rejected with 'Redis unavailable' are skipped until a publish succeeds again; other failures still warn every time. * test(redis): timing bounds name their command timeout and leave CI headroom The relay test sets a 1000 ms timeout and checks it finishes within one timeout rather than two; the release timing bound is 250 ms. * style(broadcast): shorter comment on the publish warning * fix(metering): the cached base is dropped while failing fast, without waiting forgetBase sends its DEL through sendAsUndo, so after a write-through it still queues behind the timed-out increment and its undo instead of being rejected unsent. incr no longer awaits it on the request path; the MeteringService callers still do. * fix(redis): a command rejected while failing fast is handled, so one nobody awaits can't end the process * style(types): unrelated interfaces keep the formatting lint expects * fix(cache): invalidations are sent while failing fast, so a write during a stall doesn't leave the old entry cached --------- Co-authored-by: Daniel Salazar <daniel.salazar@puter.com>
The Open-Source Internet Computer!
« LIVE DEMO »
Puter.com
·
App Store
·
AI Builder
·
Developers
·
X
Puter
Puter is an advanced, open-source, self-hostable internet computer designed to be feature-rich, fast, and highly extensible.
For Users
Puter's goal is to provide you with every app and feature you need to work, create, and play under one roof. From a simple Notepad and Voice Recorder to Spreadsheet and Camera, Puter wants to be the all-in-one solution for your digital life.
For Developers
Puter provides everything you need to build and publish web apps and games. From AI to Cloud Storage and Database to Serverless Workers, Puter has you covered. Puter also helps you get users! Once you build your app, you can publish it on our App Store to reach and monetize users.
Getting Started
💻 Local Development
git clone https://github.com/HeyPuter/puter
cd puter
npm install
npm start
→ This should launch Puter at http://puter.localhost:4100
To run this checkout with Docker, follow Building from source. Create a local docker-compose.override.yml to select the local build; keeping these settings out of docker-compose.yml avoids conflicts when pulling updates and keeps local configuration out of pull requests.
🚀 Self-Hosting
Linux/macOS
curl -fsSL https://puter.com/selfhost | sh
Windows
irm https://puter.com/selfhost?os=windows | iex
→ For more details, see Self-Hosting Puter.
☁️ Puter.com
Puter is available as a hosted service at puter.com.
Support
Connect with the maintainers and community through these channels:
- Bug report or feature request? Please open an issue.
- X (Twitter): x.com/HeyPuter
- Security issues or abuse reports? security@puter.com
- Email maintainers at hi@puter.com
We are always happy to help you with any questions you may have. Don't hesitate to ask!
License
This repository, including all its contents, sub-projects, modules, and components, is licensed under AGPL-3.0 unless explicitly stated otherwise. Third-party libraries included in this repository may be subject to their own licenses.
Translations
- Arabic / العربية
- Armenian / Հայերեն
- Bengali / বাংলা
- Chinese / 中文
- Danish / Dansk
- English
- Farsi / فارسی
- Finnish / Suomi
- French / Français
- German / Deutsch
- Hebrew/ עברית
- Hindi / हिंदी
- Hungarian / Magyar
- Indonesian / Bahasa Indonesia
- Italian / Italiano
- Japanese / 日本語
- Korean / 한국어
- Malay / Bahasa Malaysia
- Malayalam / മലയാളം
- Dutch / Nederlands
- Polish / Polski
- Odia / ଓଡ଼ିଆ
- Portuguese / Português
- Punjabi / ਪੰਜਾਬੀ
- Romanian / Română
- Russian / Русский
- Spanish / Español
- Swedish / Svenska
- Tamil / தமிழ்
- Telugu / తెలుగు
- Thai / ไทย
- Turkish / Türkçe
- Ukrainian / Українська
- Urdu / اردو
- Vietnamese / Tiếng Việt

