summaryrefslogtreecommitdiff
path: root/lib/README.multi_socket
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-04-21 13:40:07 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-04-21 13:40:07 +0000
commit0ec96e427987e157dfbee57c016c30b671f336f5 (patch)
tree75cb9024b66587147ad4814371b9b8112a3ca484 /lib/README.multi_socket
parent6e520c4cdc81bc5523534cc4153d9252b7fe2d5c (diff)
downloadcurl-0ec96e427987e157dfbee57c016c30b671f336f5.tar.gz
each socket is used by exactly one easy handle, but of course each easy handle
can and will use more than one socket
Diffstat (limited to 'lib/README.multi_socket')
-rw-r--r--lib/README.multi_socket15
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/README.multi_socket b/lib/README.multi_socket
index e18b90497..22e788bf5 100644
--- a/lib/README.multi_socket
+++ b/lib/README.multi_socket
@@ -43,15 +43,12 @@ Implementation of the curl_multi_socket API
handle conversion on its own. I find it very unlikely that applications
would want to do that and since libcurl would need such a lookup on its own
anyway since we didn't want to force applications to do that translation
- code (it would be optional), it seemed like an unnecessary option. I also
- realized that when we use underlying libraries such as c-ares (for DNS
- asynch resolving) there might in fact be more than one transfer waiting for
- action on the same socket and thus it makes the lookup even tricker and even
- less likely to ever get done by applications. Instead I created an internal
- "socket to easy handles" hash table that given a socket (file descriptor)
- returns a list of easy handles that waits for some action on that socket.
- This hash is made using the already existing hash code (previously only used
- for the DNS cache).
+ code (it would be optional), it seemed like an unnecessary option.
+
+ Instead I created an internal "socket to easy handles" hash table that given
+ a socket (file descriptor) return the easy handle that waits for action on
+ that socket. This hash is made using the already existing hash code
+ (previously only used for the DNS cache).
To make libcurl be able to report plain sockets in the socket callback, I
had to re-organize the internals of the curl_multi_fdset() etc so that the