Skip to content

Commit

Permalink
conn/names: move name resolving to connection control section
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Dec 28, 2023
1 parent 5d67e00 commit 6e43586
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@
* [TLS options](libcurl/options/tls.md)
* [All options](libcurl/options/all.md)
* [Get option information](libcurl/options/info.md)
* [Name resolving](libcurl/names.md)
* [Drive transfers](libcurl/drive.md)
* [Drive with easy](libcurl/drive/easy.md)
* [Drive with multi](libcurl/drive/multi.md)
Expand All @@ -222,6 +221,7 @@
* [Prereq](libcurl/callbacks/prereq.md)
* [Connection control](libcurl/conn.md)
* [Connection reuse](libcurl/conn/reuse.md)
* [Name resolving](libcurl/conn/names.md)
* [Proxies](libcurl/conn/proxies.md)
* [Transfer control](libcurl/control.md)
* [Stop](libcurl/control/stop.md)
Expand Down
1 change: 1 addition & 0 deletions libcurl/conn.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ QUIC. Transfers are done *over* connections and libcurl offers a lot of
concepts for connections and options to control how it works with them.

* [Connection reuse](conn/reuse.md)
* [Name resolving](conn/names.md)
* [Proxies](conn/proxies.md)
4 changes: 2 additions & 2 deletions libcurl/names.md → libcurl/conn/names.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ translated to an Internet address. That is "name resolving". Using a numerical
IP address directly in the URL usually avoids the name resolve phase, but in
many cases it is not easy to manually replace the name with the IP address.

libcurl tries hard to [re-use an existing connection](conn/reuse.md)
libcurl tries hard to [re-use an existing connection](reuse.md)
rather than to create a new one. The function that checks for an existing
connection to use is based purely on the name and is performed before any name
resolving is attempted. That is one of the reasons the re-use is so much
Expand Down Expand Up @@ -68,7 +68,7 @@ cache for 60 seconds, but that value can be changed with

The DNS cache is kept within the easy handle when `curl_easy_perform` is used,
or within the multi handle when the multi interface is used. It can also be
made shared between multiple easy handles using the [share interface](sharing.md).
made shared between multiple easy handles using the [share interface](../sharing.md).

## Custom addresses for hosts

Expand Down
2 changes: 1 addition & 1 deletion libcurl/sharing.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ you want.
## Multi handle

All easy handles added to the same multi handle automatically share
[connection cache](conn/reuse.md) and [dns cache](names.md).
[connection cache](conn/reuse.md) and [dns cache](conn/names.md).

## Sharing between easy handles

Expand Down

0 comments on commit 6e43586

Please sign in to comment.