curl peer disconnects inside lxd container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-meta (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Repro steos
I have an (intermittent) issue when running curl/git inside an lxd container, the command always will interrupt with some kind of error due to peer disconnect e.g. "curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104". Outside the lxd container i.e. on ubuntu machine itself the same resource download without a problem.
```
# install and configure a virtual machine with ubuntu and configure it with bridged network, then install lxd on the vm with default configuration i.e. install network bridge lxdbr0 and run curl command.
sudo snap install lxd
sudo lxd init
sudo lxc launch images:ubuntu/focal wired-bluejay
sudo lxc exec wired-bluejay -- curl -o dart-sdk-
```
```
% Total % Received % Xferd Average Speed Time Time Time Current
8 246M 8 20.8M 0 0 2780k 0 0:01:30 0:00:07 0:01:23 2951k
curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104
```
Additional information:
I discovered the issue under an wsl installation of ubuntu. Initially I wasn't able reproduce with on an virtual machine (fresh ubuntu 22.10), but recently discovered I *can* reproduce the behavior when the network adapter on the vm (virtualbox) is switched to bridged. Identical behavior manifests.
I stated above the issue is intermittent, with wsl I observed that only in two out of three networks the undesired behavior manifested. The networks are provided by the same internet service provider with same router models and assumed same network configuration.
I reported the bugs prior to other places:
- https:/
- https:/