apple / apple/container

[Bug]: Retry on network errors before giving up

Open
#2,264 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
49.9k
Forks
1.8k
Avg merge
1d 20h
Merged PRs (30d)
22

Description

### I have done the following

- [x] I have searched the existing issues
- [x] If possible, I've reproduced the issue using the 'main' branch of this project

### Steps to reproduce

1. Pull a large ~30 GB image (an exact link isn't disclosed).

### Problem description

This fails with:
```
Error: StreamClosed(streamID: HTTP2StreamID(45), errorCode: HTTP2ErrorCode<0x1 ProtocolError>, location: "NIOHTTP2/HTTP2StreamChannel.swift:892")
```
Or just:
```
Error: HTTPClientError.remoteConnectionClosed
```

### Environment

```markdown
- OS: macOS
- Container: commit 6e65319
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure while pulling a large image, then trace the reported NIOHTTP2/HTTP2StreamChannel.swift:892 error and HTTPClientError.remoteConnectionClosed through the container's image-pull path. Done means transient network failures retry before the pull gives up, while the reported errors remain covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.