[tor-bugs] #28179 [Core Tor/Tor]: Handle output from PT processes with the event loop

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Oct 24 14:56:36 UTC 2018


#28179: Handle output from PT processes with the event loop
------------------------------+--------------------------------
     Reporter:  ahf           |      Owner:  (none)
         Type:  enhancement   |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.6.x-final
    Component:  Core Tor/Tor  |    Version:  Tor: unspecified
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:  #25502
       Points:                |   Reviewer:
      Sponsor:  Sponsor8      |
------------------------------+--------------------------------
 Currently the output from stdout/stderr of a PT process is only read
 during the startup of the process. The reading process uses read() on a
 non-blocking socket, which currently seems to work, but have proved to be
 flaky.

 We should ensure that PT processes' output can be read all the time.

 On Windows we cannot attach the pipes to the main loop because of
 limitations of the `select()` API, so we have to do something slightly
 worse such as reading from the stdout/stderr handle via a timer as long as
 the processes are alive.

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


More information about the tor-bugs mailing list