﻿# Qwen Code hardens compressed request parsing so a malformed body does not end the daemon

Use an owned malformed compressed fixture, retain the process identity and follow with health plus ordinary traffic; a parser error alone is incomplete evidence.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-qwen-compressed-body-daemon-survival/
Language: en

Qwen Code v0.27.4, released on November 15 at 07:04:40 UTC, includes a body-parser security update with a daemon-survival regression. The checked report sends a compressed JSON body with trailing data, then verifies the process remains healthy and serves an ordinary request. The practical boundary is process isolation from one malformed upload; an error response without a subsequent liveness check cannot establish that the service survived.

## Make the malformed case controlled and local

Use a disposable owned daemon and a small inert compressed fixture matching the documented trailing-data condition. Record the exact encoding and request headers so the parser path is known. This is a proposed regression procedure, not a recommendation to probe external services. A client that rejects the fixture before sending it can produce a clean-looking negative result while never exercising the server parser, so observe arrival at the owned request boundary.

## A supervisor restart is not process survival

Record the daemon PID or another stable process-instance identity before the malformed request, then inspect it after the response and health check. If a supervisor is present, preserve its restart counter as well. A quick replacement can make a health endpoint return 200 while active sessions were lost. The PR’s survival question therefore needs continuity evidence in addition to availability of some process listening on the same port after the test.

## Ordinary traffic demonstrates useful recovery

After the malformed upload, submit a normal harmless request through the same supported application path. A health endpoint may bypass body parsing, authentication or session handling and cannot establish their continued usefulness. Compare a known response marker and inspect logs for an unhandled exception. Keep the malformed request’s refusal separate from the healthy request’s success so a test cannot accidentally treat the parser’s error body as the expected application reply.

## One parser repair is not every resource policy

Repeat a bounded sequence of malformed and valid local requests and check stable service state under the application’s existing limits. Do not extrapolate this specific update into a guarantee against arbitrary decompression ratios, unlimited bodies or all denial-of-service mechanisms. A useful adoption record names the installed parser artifact, fixture arrival, refusal outcome, uninterrupted process identity and useful follow-up traffic, turning the release note into concrete continuity evidence without inventing an unmeasured capacity improvement.

## Sources

- [Qwen Code v0.27.4 release notes](https://github.com/QwenLM/qwen-code/releases/tag/v0.27.4)
- [Implementation and review #17105](https://github.com/QwenLM/qwen-code/pull/17105)

## Related reading

- [Retrying generation POSTs: idempotency must be explicit](/journal/provider-post-retry-idempotency-ledger/)
- [Inspect sandbox boundaries: a configured container does not move Python tool wrappers](/journal/fg2-inspect-sandbox-tool-wrapper-host-execution/)
