[tor-bugs] #23676 [Core Tor/Tor]: kist on 0.3.2.1-alpha-dev beats its head against a wall trying to flush a conn that's closed

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 28 20:23:07 UTC 2017


#23676: kist on 0.3.2.1-alpha-dev beats its head against a wall trying to flush a
conn that's closed
-------------------------------------------------+-------------------------
 Reporter:  arma                                 |          Owner:  (none)
     Type:  defect                               |         Status:
                                                 |  needs_review
 Priority:  High                                 |      Milestone:  Tor:
                                                 |  0.3.2.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  regression, cpu, tor-sched, 0.3.2.2  |  Actual Points:
  -alpha-must                                    |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by dgoulet):

 Replying to [comment:13 arma]:
 > Replying to [comment:12 dgoulet]:
 > > The offending party is the `circuitmux_append_destroy_cell()` which
 basically creates one DESTROY cell, push it on the cmux queue and then
 flushes it with `channel_flush_from_first_active_circuit()`. That function
 does MANY thins and among those, it writes the cell directly to the outbuf
 if the `outgoing_queue` of the channel is empty (which turns out to be
 ALWAYS empty...).
 >
 > Does that mean the destroy cell is going out before the other cells,
 with the new kist scheduler?

 I don't think so because at that point, the circuit cell queue is empty.
 The destroy cell is only flushed if the outbuf of the connection is empty.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23676#comment:14>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list