]> sjero.net Git - wget/commit
Set sock variable to -1 if no persistent conn exists
authorTomas Hozza <thozza@redhat.com>
Thu, 11 Jul 2013 11:22:43 +0000 (13:22 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Thu, 11 Jul 2013 18:50:42 +0000 (20:50 +0200)
commit8760123cee87e07a276b8b13ef48ada3a490ad47
treec988a46b3f70d63ec6752afd09c581dc4a7a6e38
parentc9c0e4c6418350d913638d73e0a50bebdb5fd983
Set sock variable to -1 if no persistent conn exists

Wget should set sock variable to -1 if no persistent
connection exists. Function persistent_available_p()
tests persistent connection but if test_socket_open()
fails it closes the socket but will not set sock variable
to -1. After returning from persistent_available_p()
it is possible that sock has still value of already
closed connection.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
src/ChangeLog
src/http.c