102-drop-opt.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Filename: 102-drop-opt.txt
  2. Title: Dropping "opt" from the directory format
  3. Author: Nick Mathewson
  4. Created: Jan 2007
  5. Status: Closed
  6. Implemented-In: 0.2.0.x
  7. Overview:
  8. This document proposes a change in the format used to transmit router and
  9. directory information.
  10. This proposal has been accepted, implemented, and merged into dir-spec.txt.
  11. Proposal:
  12. The "opt" keyword in Tor's directory formats was originally intended to
  13. mean, "it is okay to ignore this entry if you don't understand it"; the
  14. default behavior has been "discard a routerdesc if it contains entries you
  15. don't recognize."
  16. But so far, every new flag we have added has been marked 'opt'. It would
  17. probably make sense to change the default behavior to "ignore unrecognized
  18. fields", and add the statement that clients SHOULD ignore fields they don't
  19. recognize. As a meta-principle, we should say that clients and servers
  20. MUST NOT have to understand new fields in order to use directory documents
  21. correctly.
  22. Of course, this will make it impossible to say, "The format has changed a
  23. lot; discard this quietly if you don't understand it." We could do that by
  24. adding a version field.
  25. Status:
  26. * We stopped requiring it as of 0.1.2.5-alpha. We'll stop generating it
  27. once earlier formats are obsolete.