Discussion:
curl: (28) Operation timed out
Gerard Seibert
2018-04-21 11:55:26 UTC
Permalink
I don't know if this is the best place to ask this, but I might as well start
somewhere.

On a FreeBSD -11.1 amd64 machine, I am running a script from:
https://github.com/extremeshok/clamav-unofficial-sigs that causes the
following error message to be displayed:

curl: (28) Operation timed out after 180000 milliseconds with 64251250 out of
304224491 bytes received

The rest of the script works fine. I have tried running the script at
different times, all with the same results. I am not sure what the problem is
or how to correct it. I am hoping that someone can assist me.
--
Gerard

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.
Ray Satiro
2018-04-21 18:04:50 UTC
Permalink
Post by Gerard Seibert
I don't know if this is the best place to ask this, but I might as well start
somewhere.
https://github.com/extremeshok/clamav-unofficial-sigs that causes the
curl: (28) Operation timed out after 180000 milliseconds with 64251250 out of
304224491 bytes received
The rest of the script works fine. I have tried running the script at
different times, all with the same results. I am not sure what the problem is
or how to correct it. I am hoping that someone can assist me.
That script sets the default maximum transfer time to 180 seconds
[1][2][3]. If the transfer takes longer than that it fails. That is too
short an amount of time to set as the default. In my opinion it rarely
makes sense to set that option. If you know the bandwidth and the size
of the file you are downloading even then it would need to be a very
high number to account for any possible network conditions. In this case
it looks like neither is known. I suggest change it to 0 in the conf to
disable and open an issue in their repo to discuss this with them.

[1]:
https://github.com/extremeshok/clamav-unofficial-sigs/blob/master/config/master.conf#L438
[2]:
https://github.com/extremeshok/clamav-unofficial-sigs/blob/master/clamav-unofficial-sigs.sh#L292
[3]: https://curl.haxx.se/docs/manpage.html#-m



-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://c
Gerard Seibert
2018-04-22 12:13:18 UTC
Permalink
Post by Ray Satiro
Post by Gerard Seibert
I don't know if this is the best place to ask this, but I might as well
start somewhere.
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fextremeshok%2Fclamav-unofficial-sigs&data=02%7C01%7C%7C1239dd10151c48a85b0d08d5a7b348ac%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636599310809661345&sdata=Z3pix%2F8LIYQnJuvHLobeHYjrvnIdggxuv%2B0wNLL9idg%3D&reserved=0
curl: (28) Operation timed out after 180000 milliseconds with 64251250 out
of 304224491 bytes received
The rest of the script works fine. I have tried running the script at
different times, all with the same results. I am not sure what the problem
is or how to correct it. I am hoping that someone can assist me.
That script sets the default maximum transfer time to 180 seconds
[1][2][3]. If the transfer takes longer than that it fails. That is too
short an amount of time to set as the default. In my opinion it rarely
makes sense to set that option. If you know the bandwidth and the size
of the file you are downloading even then it would need to be a very
high number to account for any possible network conditions. In this case
it looks like neither is known. I suggest change it to 0 in the conf to
disable and open an issue in their repo to discuss this with them.
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fextremeshok%2Fclamav-unofficial-sigs%2Fblob%2Fmaster%2Fconfig%2Fmaster.conf%23L438&data=02%7C01%7C%7C1239dd10151c48a85b0d08d5a7b348ac%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636599310809661345&sdata=iixS3CYAwdj4umXF6u7a3cskLUwYLN2gAv834WhbeuE%3D&reserved=0
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fextremeshok%2Fclamav-unofficial-sigs%2Fblob%2Fmaster%2Fclamav-unofficial-sigs.sh%23L292&data=02%7C01%7C%7C1239dd10151c48a85b0d08d5a7b348ac%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636599310809661345&sdata=WS0YjOO3wxmFOgAcvUiWVOTGBtkB37Np1f3a0ypSzN8%3D&reserved=0
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcurl.haxx.se%2Fdocs%2Fmanpage.html%23-m&data=02%7C01%7C%7C1239dd10151c48a85b0d08d5a7b348ac%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636599310809661345&sdata=PTxtCzdGLJVzUipem2uWe91DWmm2WBYHN9yJDsGDWnI%3D&reserved=0
Thanks, that fixed it. I will open a PR with them regarding the problem.
--
Gerard

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Et
Loading...