# write: broken pipe

- **ID:** `go/io-writer-error-broken-pipe`
- **Domain:** go
- **Category:** io_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The reader on the other end of a pipe or socket has closed, causing a broken pipe error on write.

## Version Compatibility

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

## Workarounds

1. **** (85% success)
   ```
   Handle the error by closing the writer and cleaning up resources.
   ```

## Dead Ends

- **** — The write will fail again because the reader is gone. (90% fail)
- **** — May not be possible or may cause unexpected side effects. (50% fail)
