]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Update k5_sendto() comment 1363/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 1 Aug 2024 06:41:15 +0000 (02:41 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 5 Aug 2024 21:11:01 +0000 (17:11 -0400)
Edit the block comment above k5_sendto() to take into account commits
802318cda963456b3ed7856c836e89da891483be (which added request_timeout)
and 6436a3808061da787a43c6810f5f0370cdfb6e36 (which made the open TCP
connection wait indefinite).

src/lib/krb5/os/sendto_kdc.c

index 0ffc04bd5a17fdac085a494b63664392b1157a2a..4b2906139d7bd14f4a32eb015cae458615fb9e9d 100644 (file)
@@ -1470,7 +1470,7 @@ service_fds(krb5_context context, struct select_state *selstate,
 }
 
 /*
- * Current worst-case timeout behavior:
+ * Current timeout behavior when no request_timeout is set:
  *
  * First pass, 1s per udp or tcp server, plus 2s at end.
  * Second pass, 1s per udp server, plus 4s.
@@ -1489,9 +1489,9 @@ service_fds(krb5_context context, struct select_state *selstate,
  *
  * Note that if you try to reach two ports on one server, it counts as two.
  *
- * There is one exception to the above rules.  Whenever a TCP connection is
- * established, we wait up to ten seconds for it to finish or fail before
- * moving on.  This reduces network traffic significantly in a TCP environment.
+ * If a TCP connection is established, we wait on it indefinitely (or until
+ * request_timeout has elapsed) and do not attempt to contact additional
+ * servers.
  */
 
 krb5_error_code