]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Improve documentation for connection_dirserv_flushed_some.
authorNick Mathewson <nickm@torproject.org>
Fri, 17 Mar 2017 15:31:21 +0000 (11:31 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 28 Mar 2017 17:55:03 +0000 (19:55 +0200)
src/or/dirserv.c

index bf01dce3733cc8668bdc8b8797ae89d0d6dba227..33d25618fabbe19aee82786b6a14579d2469c790 100644 (file)
@@ -3740,8 +3740,14 @@ get_signed_descriptor_by_fp(const uint8_t *fp, int extrainfo)
  * below this threshold. */
 #define DIRSERV_BUFFER_MIN 16384
 
-/** Called whenever we have flushed some directory data in state
- * SERVER_WRITING. */
+/**
+ * Called whenever we have flushed some directory data in state
+ * SERVER_WRITING, or whenever we want to fill the buffer with initial
+ * directory data (so that subsequent writes will occur, and trigger this
+ * function again.)
+ *
+ * Return 0 on success, and -1 on failure.
+ */
 int
 connection_dirserv_flushed_some(dir_connection_t *conn)
 {