wget: make -T timeout work on header reads too. Closes 8636
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 17 Mar 2016 14:58:16 +0000 (15:58 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 17 Mar 2016 20:52:42 +0000 (21:52 +0100)
commit6701e91d84fe499b5d87dc21790cd9d7bcb13220
tree6999b06877693ffb5bb86e4dfef659772fc7f2ac
parent0d1b71e8e61491cf50fc3a21ec0a412f6dca4d56
wget: make -T timeout work on header reads too. Closes 8636

function                                             old     new   delta
set_alarm                                              -      27     +27
fgets_and_trim                                        76      92     +16
wget_main                                           2610    2616      +6
open_socket                                           64      54     -10

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/wget.c