Browse Source

Ignore buffer size in KIST calculation

Steven Engler 4 years ago
parent
commit
4cd4e022d0
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/core/or/scheduler_kist.c

+ 4 - 2
src/core/or/scheduler_kist.c

@@ -343,8 +343,10 @@ update_socket_info_impl, (socket_table_ent_t *ent))
   extra_space =
     clamp_double_to_int64(
                  (ent->cwnd * (int64_t)ent->mss) * sock_buf_size_factor) -
-    ent->notsent - (int64_t)channel_outbuf_length((channel_t *) ent->chan);
-  // TODO: this call to channel_outbuf_length() requires a lock, which is bad
+    //ent->notsent - (int64_t)channel_outbuf_length((channel_t *) ent->chan);
+    ent->notsent - 0;
+  // TODO: we should take into account how much data is already queued, but
+  // we have no good way of doing that without locking
   if ((tcp_space + extra_space) < 0) {
     /* This means that the "notsent" queue is just too big so we shouldn't put
      * more in the kernel for now. */