Opened 9 years ago

Last modified 22 months ago

#1127 new defect (None)

no shutdown descriptor published when ORPort is closed but client stays up

Reported by: nickm Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: tor-relay hibernate shutdown
Cc: nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by nickm)

(Posted by request from Scott Bennett.)

Category: tor router -> tor client
Operating System: observed on FreeBSD 7.2-STABLE
Reported Version:
Title: no shutdown descriptor published when ORPort is closed but client stays up
Reported By: Scott Bennett

Description: When tor is running as both a router and a client, if a SIGINT

is sent to tor, tor closes the ORPort (and DirPort if applicable),
publishes a shutdown descriptor (i.e., a new descriptor in which the
"observed maximum 10s data rate in previous 24 hrs" is set to 0 to
discourage further attempts to include the node in new circuits), and
proceeds with the rest of the shutdown procedure. However, given the
same starting conditions, if the ORPort line in torrc is commented out
and a SIGHUP is sent to tor, tor will read the updated torrc, notice
that the ORPort is no longer to be used, close the ORPort (and DirPort
if applicable), and continue operation as a client process *without*
publishing a shutdown procedure. This situation results in many
unnecessary attempts by clients and routers to connect to the ORPort
(and DirPort if applicable) after it has been closed, wasting time and
causing avoidable circuit construction failures. This was observed in
tor I haven't yet tried it in

[Automatically added by flyspray2trac: Operating System: BSD]

Child Tickets

Change History (5)

comment:1 Changed 8 years ago by nickm

Description: modified (diff)
Milestone: Tor: 0.2.3.x-final

If we can fix this in 0.2.3, we should. It would be even nicer to have this happen as a part of a refactoring of our general "what's our own state" code, which is a bit of a spaghettiish mess to begin with.

comment:2 Changed 7 years ago by nickm

Milestone: Tor: 0.2.3.x-finalTor: unspecified

comment:3 Changed 6 years ago by nickm

Keywords: tor-relay added

comment:4 Changed 6 years ago by nickm

Component: Tor RelayTor

comment:5 Changed 22 months ago by nickm

Keywords: hibernate shutdown added
Severity: Normal
Note: See TracTickets for help on using tickets.