[tor-bugs] #5617 [Obfsproxy]: obfsproxy: test suite failure (connection refused)
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Sat Apr 14 19:19:36 UTC 2012
#5617: obfsproxy: test suite failure (connection refused)
-----------------------+----------------------------------------------------
Reporter: asn | Owner: asn
Type: defect | Status: new
Priority: normal | Milestone:
Component: Obfsproxy | Version:
Keywords: | Parent:
Points: | Actualpoints:
-----------------------+----------------------------------------------------
Comment(by asn):
I suspect that this one is caused by this code:
{{{
self.output_reader = ReadWorker(("127.0.0.1", EXIT_PORT))
self.obfs = Obfsproxy(self.obfs_args)
self.input_chan = connect_with_retry(("127.0.0.1", ENTRY_PORT))
}}}
`ReadWorker` is supposed to listen in `EXIT_PORT`, so that the server-side
obfsproxy can send it data to read.
`ReadWorker` is implemented as a `multiprocessing` process, and I think
that the `Connection refused` error is caused by the race condition
between `ReadWorker` spawning its python process, and `Obfsproxy` spawing
its obfsproxy process that tries to connect to `EXIT_PORT`.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5617#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list