about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-03-11 13:35:47 -0800
committerEric Wong <normalperson@yhbt.net>2011-03-11 13:35:47 -0800
commit154842a48c0baba66daf744f3be06fd8701b9638 (patch)
treea7abcf9857705b18d7710c06d3542bed04fff412
parent666cb9c38fd132ec8bee0b7860b6cf30db0f9b41 (diff)
downloadraindrops-154842a48c0baba66daf744f3be06fd8701b9638.tar.gz
It's useful, yes.
-rw-r--r--ext/raindrops/linux_tcp_info.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/raindrops/linux_tcp_info.c b/ext/raindrops/linux_tcp_info.c
index 4aa1c0e..1a2048c 100644
--- a/ext/raindrops/linux_tcp_info.c
+++ b/ext/raindrops/linux_tcp_info.c
@@ -87,6 +87,11 @@ void Init_raindrops_linux_tcp_info(void)
          * are defined corresponding to the "tcpi_" fields in the
          * tcp_info struct.
          *
+         * In particular, the +last_data_recv+ field is useful for measuring
+         * the amount of time a client spent in the listen queue before
+         * +accept()+, but only if +TCP_DEFER_ACCEPT+ is used with the
+         * listen socket (it is on by default in Unicorn).
+         *
          * - state
          * - ca_state
          * - retransmits