Hi, thanks for reporting.
The 5 second timeout is really too short. I'm changing it to 30 seconds for the next release. Your workaround should not be overwritten until that update, as the avast.setup file is installed from `avast` package (it's not overwritten by VPS signatures).
The avastlic tool has connection timeout 45s, but also "max-time" 45s (i.e. timeout for the whole operation). The later might be the issue. We'll see what can be done about that (make it much longer or configurable).