# http: write tcp 127.0.0.1:8080->127.0.0.1:58932: write: broken pipe

- **ID:** `go/http-write-timeout`
- **Domain:** go
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

客户端在服务端写入响应前关闭了连接，导致服务端写入时发生broken pipe。

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.22 | active | — | — |

## Workarounds

1. **** (70% success)
   ```
   在写入前检查客户端连接状态，使用http.ResponseController处理。
   ```

## Dead Ends

- **** — 忽略错误但可能造成服务端资源泄漏。 (50% fail)
- **** — 增加超时时间但客户端已断开，无效。 (80% fail)
