mirror of
https://github.com/mirror/wget.git
synced 2025-03-31 06:30:12 +08:00
[svn] Clarify the logic of persistent_available_p.
This commit is contained in:
parent
ba78ba1e36
commit
fc5a9adfab
16
src/http.c
16
src/http.c
@ -969,12 +969,12 @@ persistent_available_p (const char *host, int port, int ssl,
|
|||||||
still hope -- read below. */
|
still hope -- read below. */
|
||||||
if (0 != strcasecmp (host, pconn.host))
|
if (0 != strcasecmp (host, pconn.host))
|
||||||
{
|
{
|
||||||
/* If pconn.socket is already talking to HOST, we needn't
|
/* Check if pconn.socket is talking to HOST under another name.
|
||||||
reconnect. This happens often when both sites are virtual
|
This happens often when both sites are virtual hosts
|
||||||
hosts distinguished only by name and served by the same
|
distinguished only by name and served by the same network
|
||||||
network interface, and hence the same web server (possibly
|
interface, and hence the same web server (possibly set up by
|
||||||
set up by the ISP and serving many different web sites).
|
the ISP and serving many different web sites). This
|
||||||
This admittedly non-standard optimization does not contradict
|
admittedly unconventional optimization does not contradict
|
||||||
HTTP and works well with popular server software. */
|
HTTP and works well with popular server software. */
|
||||||
|
|
||||||
int found;
|
int found;
|
||||||
@ -983,8 +983,8 @@ persistent_available_p (const char *host, int port, int ssl,
|
|||||||
|
|
||||||
if (ssl)
|
if (ssl)
|
||||||
/* Don't try to talk to two different SSL sites over the same
|
/* Don't try to talk to two different SSL sites over the same
|
||||||
secure connection! (Besides, it's not clear if name-based
|
secure connection! (Besides, it's not clear that
|
||||||
virtual hosting is even possible with SSL.) */
|
name-based virtual hosting is even possible with SSL.) */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* If pconn.socket's peer is one of the IP addresses HOST
|
/* If pconn.socket's peer is one of the IP addresses HOST
|
||||||
|
Loading…
Reference in New Issue
Block a user