about summary refs log tree commit homepage
path: root/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'http.c')
-rw-r--r--http.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/http.c b/http.c
index 19cf9b7..cc802c3 100644
--- a/http.c
+++ b/http.c
@@ -122,7 +122,14 @@ void mog_http_unlink_ftmp(struct mog_http *http)
                        file->tmppath, http->svc->docroot);
 }
 
-/* called if epoll/kevent is out-of-space */
+/*
+ * called only if epoll/kevent is out-of-space
+ * Note: it's impossible for this to be called while this mfd is
+ * inside an ioq SIMPLEQ, however mfd->ioq_blocked /may/ be true when
+ * this function is called.  We could add validation code to ensure
+ * this remains true, but that would increase the size of "struct mog_fd",
+ * so we will rely on this comment instead.
+ */
 void mog_http_drop(struct mog_fd *mfd)
 {
         struct mog_http *http = &mfd->as.http;