Comment 8 for bug 1875517

Revision history for this message
Haw Loeung (hloeung) wrote :

I set something up for you to test:

| /usr/lib/nagios/plugins/check_http -p 443 --ssl -H people.canonical.com -j GET -u '/~hloeung/tmp/lp1875517-test.txt' -r haproxy -t 60

Without the patch, it's ~25secs. With reduces that to under 1sec.

This works for testing too (~2secs vs. ~0.1secs):

| /usr/lib/nagios/plugins/check_http -H archive.ubuntu.com -j GET -u /ubuntu/ls-lR.gz -t 60

That's for a 20MBytes file. Could also pick a larger 150Mbytes file:

| $ /usr/lib/nagios/plugins/check_http -H archive.ubuntu.com -j GET -u /ubuntu/pool/main/l/linux-hwe-5.0/linux-hwe-5.0_5.0.0.orig.tar.gz -t 600
| HTTP OK: HTTP/1.1 200 OK - 162594115 bytes in 0.499 second response time |time=0.498710s;;;0.000000;600.000000 size=162594115B;;;0

With the patch vs. the following without:

| $ /usr/lib/nagios/plugins/check_http -H archive.ubuntu.com -j GET -u /ubuntu/pool/main/l/linux-hwe-5.0/linux-hwe-5.0_5.0.0.orig.tar.gz -t 600
| HTTP OK: HTTP/1.1 200 OK - 162594115 bytes in 108.216 second response time |time=108.215539s;;;0.000000 size=162594115B;;;0