read error:  "end of file"  (v6.16.1 - RTM)
**Describe the bug**
During active mining run, from time to time this error shows.

`stratum+tcp://raptorna.011data.com:3032 read error: "end of file"`

Will need to check if this happens on other pools. ( will test )


**To Reproduce**
normal execution of xmrig

**Expected behavior**
No error.    This seems to be happening on some of my computers that also see the "no active pools, stop mining" error.

**Required data**
```
[2021-11-29 18:11:47.623]  net      new job from raptorna.011data.com:3032 diff 1092K algo ghostrider height 195035
[2021-11-29 18:12:25.334]  net      stratum+tcp://raptorna.011data.com:3032 read error: "end of file"
[2021-11-29 18:12:25.334]  net      no active pools, stop mining
[2021-11-29 18:12:30.695]  net      use pool raptorna.011data.com:3032  66.228.57.126
[2021-11-29 18:12:30.695]  net      new job from raptorna.011data.com:3032 diff 16384 algo ghostrider height 195036
```
 - Config file or command line (without wallets)
sudo `screen -dmS RTM011data ./xmrig -a gr -o stratum+tcp://raptorna.011data.com:3032 -u <wallet.workername> -p x --cpu-max-threads-hint=80 --log-file=xmrig-log-txt`

miner startup:
```
 * ABOUT        XMRig/6.16.1 gcc/9.3.0
 * LIBS         libuv/1.42.0 OpenSSL/1.1.1l hwloc/2.5.0
 * HUGE PAGES   supported
 * 1GB PAGES    disabled
 * CPU          Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz (1) 64-bit AES
                L2:1.5 MB L3:12.0 MB 6C/12T NUMA:1
 * MEMORY       0.6/15.6 GB (4%)
                DIMM1: 4 GB DDR3 @ 1866 MHz 0x45424A3430454738424657422D4A532D4620
                DIMM2: 4 GB DDR3 @ 1866 MHz 0x45424A3430454738424657422D4A532D4620
                DIMM3: 4 GB DDR3 @ 1866 MHz 0x45424A3430454738424657422D4A532D4620
                DIMM4: 4 GB DDR3 @ 1866 MHz 0x45424A3430454738424657422D4A532D4620
 * MOTHERBOARD  Apple Inc. - Mac-F60DEB81FF30ACF6
 * DONATE       1%
 * ASSEMBLY     auto:intel
 * POOL #1      stratum+tcp://raptorna.011data.com:3032 algo ghostrider
 * COMMANDS     hashrate, pause, resume, results, connection
```





 - OS: [e.g. Windows]
```
inxi -Ff
System:    Host: myner1 Kernel: 5.4.0-90-generic x86_64 bits: 64 Console: tty 0 
           Distro: Ubuntu 20.04.3 LTS (Focal Fossa) 
Machine:   Type: Unknown System: Apple product: MacPro6,1 v: 1.0 serial: <superuser/root required> 
           Mobo: Apple model: Mac-F60DEB81FF30ACF6 v: MacPro6,1 serial: <superuser/root required> UEFI: Apple 
           v: 429.40.7.0.1 date: 09/16/2021 
CPU:       Topology: 6-Core model: Intel Xeon E5-1650 v2 bits: 64 type: MT MCP L2 cache: 12.0 MiB 
           Speed: 3600 MHz min/max: 1200/3900 MHz Core speeds (MHz): 1: 3600 2: 3600 3: 3600 4: 3600 5: 3600 6: 3600 
           7: 3600 8: 3600 9: 3600 10: 3600 11: 3600 12: 3600 
           Flags: acpi aes aperfmperf apic arat arch_perfmon avx bts clflush cmov constant_tsc cpuid cpuid_fault 
           cx16 cx8 dca de ds_cpl dtes64 dtherm dts epb ept erms est f16c flexpriority flush_l1d fpu fsgsbase fxsr 
           ht ibpb ibrs ida lahf_lm lm mca mce md_clear mmx monitor msr mtrr nonstop_tsc nopl nx pae pat pbe pcid 
           pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdtscp rep_good sep smep smx ss 
           ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_deadline_timer vme vmx vnmi 
           vpid x2apic xsave xsaveopt xtopology xtpr 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Tahiti LE [Radeon HD 7870 XT] driver: radeon v: kernel 
           Device-2: Advanced Micro Devices [AMD/ATI] Tahiti LE [Radeon HD 7870 XT] driver: radeon v: kernel 
           Display: server: No display server data found. Headless machine? tty: 120x42 
           Message: Advanced graphics data unavailable in console. Try -G --display 
Audio:     Device-1: Intel C600/X79 series High Definition Audio driver: snd_hda_intel 
           Device-2: Advanced Micro Devices [AMD/ATI] Tahiti HDMI Audio [Radeon HD 7870 XT / 7950/7970] 
           driver: snd_hda_intel 
           Device-3: Advanced Micro Devices [AMD/ATI] Tahiti HDMI Audio [Radeon HD 7870 XT / 7950/7970] 
           driver: snd_hda_intel 
           Sound Server: ALSA v: k5.4.0-90-generic 
Network:   Device-1: Broadcom and subsidiaries NetXtreme BCM57762 Gigabit Ethernet PCIe driver: tg3 
Drives:    Local Storage: total: 466.65 GiB used: 7.79 GiB (1.7%) 
           ID-1: /dev/sda type: USB model: 1JMicron Generic size: 232.89 GiB 
           ID-2: /dev/sdb vendor: Apple model: SSD SM0256F size: 233.76 GiB 
Partition: ID-1: / size: 113.37 GiB used: 7.68 GiB (6.8%) fs: ext4 dev: /dev/dm-0 
           ID-2: /boot size: 975.9 MiB used: 107.0 MiB (11.0%) fs: ext4 dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 65.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
           GPU: device: radeon temp: 55 C device: radeon temp: 56 C 
Info:      Processes: 212 Uptime: 33m Memory: 15.61 GiB used: 452.4 MiB (2.8%) Init: systemd runlevel: 5 Shell: bash 
           inxi: 3.0.38 

 
```





**Additional context**
Add any other context about the problem here.
