### Steps to reproduce
1. Create shared link (9GB video file)
2. Start downloa…d big file by this link
wget -c https://cloud.myhome/s/2zeJpQTBCBS999Q/download
3. Connects strace to php nextcloud process
4. Stop download client
ctrl^c
5. In result we see next outputs:
```
[root@miki:~]# strace -p 22329
strace: Process 22329 attached
write(3, "\1\6\0\1\0\10\0\0\210\234\207\t_\255\316\226", 16) = -1 ECONNRESET (Connection reset by peer)
=== next lines showed in moment when client stops ====
read(10, "_\211\36\325\23o\221\3269&\233\3\336\22D\200\377\341?Bv\326\204\276E\2 \275E\320\277J"..., 8192) = 8192
write(3, "", 0) = -1 EPIPE (Broken pipe)
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=22329, si_uid=993} ---
read(10, "\311\223\4\235-\16\225\30\224\341\2538\2158\352\252J\334\262\314\333\16\352\351`\301\10\230\217\21\30\313"..., 8192) = 8192
write(3, "", 0) = -1 EPIPE (Broken pipe)
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=22329, si_uid=993} ---
==== last 3 lines repited a lot ===
```
```
iostat -dx 5
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0,00 0,00 1096,80 0,00 131460,80 0,00 239,72 2,80 2,61 2,61 0,00 0,91 99,80
sdb 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0,40 0,00 908,20 1,80 107288,00 16,00 235,83 5,88 6,48 6,09 205,44 1,10 99,76
sdb 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0,60 0,00 1121,80 1,60 136588,00 9,60 243,19 2,60 2,31 2,16 108,88 0,89 99,80
sdb 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 3,40 0,20 1057,40 4,00 130913,60 28,00 246,73 3,45 3,26 3,04 59,50 0,94 99,80
sdb 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0,00 0,00 1033,40 0,80 128068,80 3,20 247,67 4,72 4,57 3,90 861,50 0,96 99,52
sdb 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0,00 0,00 1059,00 0,40 125721,60 1,60 237,35 4,17 3,93 3,93 12,50 0,91 96,08
sdb 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
```
```
[root@miki:nginx]# ls -l /proc/22329/fd
итого 0
lrwx------ 1 root root 64 фев 20 16:51 0 -> /dev/null
lrwx------ 1 root root 64 фев 20 16:51 1 -> /dev/null
lrwx------ 1 root root 64 фев 20 16:51 2 -> /dev/null
lrwx------ 1 root root 64 фев 20 16:51 3 -> socket:[11660989]
lrwx------ 1 root root 64 фев 20 16:51 4 -> socket:[11663065]
lr-x------ 1 root root 64 фев 20 16:51 5 -> /s/pub/Video/+/Fifth_Element_Remastered_BDRip.mkv
lrwx------ 1 root root 64 фев 20 16:51 8 -> socket:[11661571]
```
### Expected behaviour
PHP Application should stop running
### Actual behaviour
PHP Application read all file and try push to broken pipe(socket)
### Server configuration
**Operating system:**
centos7
**Web server:**
nginx version: nginx/1.16.1
**Database:**
pgsql 10
**PHP version:**
php-fpm 7.2
**Nextcloud version:** (see Nextcloud admin page)
8.0.1
**Updated from an older Nextcloud/ownCloud or fresh install:**
8.0.0
**Where did you install Nextcloud from:**
From github releases
**Signing status:**
<details>
<summary>Signing status</summary>
```
Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
No errors have been found.
```
</details>
**List of activated apps:**
<details>
<summary>App list</summary>
```
Enabled:
- accessibility: 1.4.0
- activity: 2.11.0
- checksum: 0.4.4
- cloud_federation_api: 1.1.0
- comments: 1.8.0
- dav: 1.14.0
- federatedfilesharing: 1.8.0
- federation: 1.8.0
- files: 1.13.1
- files_external: 1.9.0
- files_pdfviewer: 1.7.0
- files_rightclick: 0.15.2
- files_sharing: 1.10.1
- files_trashbin: 1.8.0
- files_versions: 1.11.0
- files_videoplayer: 1.7.0
- firstrunwizard: 2.7.0
- logreader: 2.3.0
- lookup_server_connector: 1.6.0
- nextcloud_announcements: 1.7.0
- notifications: 2.6.0
- oauth2: 1.6.0
- password_policy: 1.8.0
- photos: 1.0.0
- privacy: 1.2.0
- provisioning_api: 1.8.0
- recommendations: 0.6.0
- serverinfo: 1.8.0
- settings: 1.0.0
- sharebymail: 1.8.0
- support: 1.1.0
- survey_client: 1.6.0
- systemtags: 1.8.0
- text: 2.0.0
- theming: 1.9.0
- twofactor_backupcodes: 1.7.0
- updatenotification: 1.8.0
- viewer: 1.2.0
- workflowengine: 2.0.0
Disabled:
- admin_audit
- encryption
- user_ldap
```
</details>
**Nextcloud configuration:**
<details>
<summary>Config report</summary>
```
{
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"cloud.drohome",
"cloud.kislyak.com",
"cloud"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "18.0.1.3",
"overwrite.cli.url": "http:\/\/localhost",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "sendmail",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"updater.secret": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"theme": "",
"loglevel": 2
}
}
```
</details>
**Are you using external storage, if yes which one:** local
**Are you using encryption:** yes/no NO
**Are you using an external user-backend, if yes which one:** NO
#### LDAP configuration (delete this part if not used)
<details>
<summary>LDAP config</summary>
```
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
```
</details>
### Client configuration
**Browser:**
Firefox 72
Curl
Wget
**Operating system:**
Ubuntu 19.10