Opened 12 years ago

Closed 2 years ago

#531 closed defect (duplicate)

Transition from 0.0.0.0 listener to specific listener disallowed

Reported by: nickm Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version: 0.1.2.17
Severity: Normal Keywords: tor-client tor-relay network needs-thinking
Cc: nickm, Sebastian Actual Points:
Parent ID: #17873 Points:
Reviewer: Sponsor:

Description (last modified by nickm)

Coderman reported back in August that if you try to change from a listener on 0.0.0.0 to a listener on a specific
address, Tor will often fail, because it doesn't close the old listener until the new listener is open (in order
to be undoable), but it can't open the new listener until the old one is closed.

See or-talk/or-dev thread, "Server node stalls on unsuccessful socks listener change."

It looks like we have two options:

1) Disallow the 0.0.0.0 -> non 0.0.0.0 change.
2) When transitioning from 0.0.0.0, accept that the transition will not be perfectly undoable.

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (7)

comment:1 Changed 12 years ago by nickm

00:41 < nickm> arma2: At your convenience, could you let me know which option

you like for bug 531?

00:45 < arma2> which option do you like?
00:46 < arma2> #2 would be better if it's not too hard
00:46 < arma2> since that seems like a change somebody might want to make some

day. for example, the people who found the bug.

00:46 < arma2> but if it *is* too hard, then #1 is better. :)

comment:2 Changed 9 years ago by nickm

Description: modified (diff)
Milestone: post 0.2.1.xTor: unspecified

See also bug #659 .

comment:3 Changed 7 years ago by nickm

Keywords: tor-client added

comment:4 Changed 7 years ago by nickm

Component: Tor ClientTor

comment:5 Changed 2 years ago by nickm

Cc: nickm,Sebastiannickm, Sebastian
Keywords: tor-relay network needs-thinking added
Severity: Normal

comment:6 Changed 2 years ago by nickm

Closed #659 as a duplicate.

The real issue here is that we open new sockets before we close old ones, to make sure that the transition will work. But sometimes, our old sockets prevent us from opening the new ones, so we need to take a "leap of faith" and close the old ones to see if we can open the new ones.

comment:7 Changed 2 years ago by teor

Parent ID: #17873
Resolution: Noneduplicate
Status: newclosed

Closing this as a duplicate of #17873, which is more comprehensive.

Note: See TracTickets for help on using tickets.