102-drop-opt.txt 1.3 KB

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